1. Install Hexo-CLi using NPM
# npm install -g hexo-cli
/usr/local/bin/hexo -> /usr/local/lib/node_modules/hexo-cli/bin/hexo
> [email protected] install /usr/local/lib/node_modules/hexo-cli/node_modules/fsevents
> node install
node-pre-gyp ERR! Tried to download(undefined): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v59-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v59 ABI, unknown) (falling back to source compile with node-gyp)
gyp ERR! clean error
gyp ERR! stack Error: EACCES: permission denied, rmdir 'build'
gyp ERR! System Darwin 17.4.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "clean"
gyp ERR! cwd /usr/local/lib/node_modules/hexo-cli/node_modules/fsevents
gyp ERR! node -v v9.8.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js clean' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/hexo-cli/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:180:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:936:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
node-pre-gyp ERR! System Darwin 17.4.0
node-pre-gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/hexo-cli/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/local/lib/node_modules/hexo-cli/node_modules/fsevents
node-pre-gyp ERR! node -v v9.8.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js clean' (1)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/hexo-cli/node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node install`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
+ [email protected]
updated 1 package in 15.117s
The answer from the stupid network was to remove Node-gyp, so I went with RM-RF node-gyp, killing the entire Node-gyp directory
When it was executed again, another mistake was made:
npm ERR! Cannot find module '../node_modules/node-gyp/bin/node-gyp'
Error 1, hexo-CLI cannot be installed because it cannot be downloaded. Solution: CNPM install -g Hexo-CLi can be executed again using CNPM
Second, I can’t find the module. I delete it before and install it again: Sudo NPM install Node-gyp-g
2. Error: ENOENT: no such file or directory, UV_Cwd Error
After deleting all the files in the blog folder, execute the command in Terminal again and report the following error:
path.js:1142
cwd = process.cwd();
^
Error: ENOENT: no such file or directory, uv_cwd
at Error (native)
at Object.resolve (path.js:1142:25)
at Function.Module._resolveLookupPaths (module.js:390:17)
at Function.Module._resolveFilename (module.js:460:31)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at /usr/local/lib/node_modules/npm/bin/npm-cli.js:25:13
at Object.<anonymous> (/usr/local/lib/node_modules/npm/bin/npm-cli.js:75:3)
at Module._compile (module.js:570:32)
Solution: Restart a Terminal
Read More:
- Some mistakes and solutions in Django
- Mistakes in learning Flink programming
- Summary of some mistakes in the development of unity ar
- Common mistakes in WCF distributed development (15): Communication with the underlying transaction manager has failed.
- Using NPM to install Remix error in Windows 10
- Error code elifecycle errorno when NPM install command is executed in Vue project
- NPM run serve reported an error “NPM err! Missing script: start”
- When VS code imported Cv2, an error ImportError: numpy.core.multiarray failed to import; There are no mistakes in using the Spyder
- NPM can’t find D: //nodejs/node all of The solution of sudden_modules/NPM/bin/npm-cli.js
- One of the common mistakes of tex
- Common mistakes and solutions of cmake + QT + VTK
- Command failed: NPM install — loglevel error — registry= https://registry.npm.taobao.org
- When NPM install, make: G + +: command not found will be prompted
- NPM installs dependent packages and reports an error node gyp rebuild… Solution
- To solve the problem of NPM run eject error in react
- NPM compilation failed: can’t resolve ‘child_ process’
- NPM install error | gyp err! Configure error
- NPM err! Code enotfound (2020-07-03)
- NPM err! Invalid name: “{{name}} in nuxt installation in p166 of Shangsi Valley online education project“
- Error in installing NPM for uniapp