apfe-cli icon indicating copy to clipboard operation
apfe-cli copied to clipboard

Error running `npm i -g apfe-cli`

Open snakeninny opened this issue 7 years ago • 3 comments

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 

snakeninny avatar Aug 17 '18 07:08 snakeninny

node -v
npm -v

跑一下看看

antife-yinyue avatar Aug 17 '18 07:08 antife-yinyue

node -v
v10.9.0
npm -v
6.2.0

snakeninny avatar Aug 17 '18 07:08 snakeninny

试了下在 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

antife-yinyue avatar Aug 17 '18 07:08 antife-yinyue