apfe-cli
apfe-cli copied to clipboard
Error running `npm i -g apfe-cli`
npm ERR! path /usr/local/lib/node_modules/apfe-cli/dist/bin/apfe.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/apfe-cli/dist/bin/apfe.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
node -v
npm -v
跑一下看看
node -v
v10.9.0
npm -v
6.2.0
试了下在 10.9.0 下安装,没抛错。你试试用 nvm 安装 node,按顺序执行:
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
$ nvm i node
$ nvm alias default node
$ npm i -g apfe-cli