Open gatspy opened 6 years ago
What does nvm use 6.9.0 && npm ls -g --depth=0
print out?
same issue here
@railsstudent can you provide your error output?
Same error output as @gatsby. Cannot reinstall packages from 6.11.2 to 8.9.3
@railsstudent ok, and what does nvm use 6.11.2 && npm ls -g --depth=0
print out?
npm ERR! error in /Users/connieleung/.nvm/versions/node/v6.11.2/lib/node_modules/@angular/.DS_Store: ENOTDIR: not a directory, open '/Users/connieleung/.nvm/versions/node/v6.11.2/lib/node_modules/@angular/.DS_Store/package.json'
@railsstudent thanks - that ".DS_Store" file seems to be messing up npm. Can you run rm -rf /Users/connieleung/.nvm/versions/node/v6.11.2/lib/node_modules/@angular
, and try again?
same problem, i reinstall nvm by git just now. my .zshrc config about nvm
export NVM_DIR="$HOME/gitProject/nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
use nvm ls
-> v6.13.1
v8.10.0
default -> v8 (-> v8.10.0)
node -> stable (-> v8.10.0) (default)
stable -> 8.10 (-> v8.10.0) (default)
iojs -> N/A (default)
lts/* -> lts/carbon (-> v8.10.0)
lts/argon -> v4.8.7 (-> N/A)
lts/boron -> v6.13.1
lts/carbon -> v8.10.0
use sudo npm ls -g --depth=0
/Users/fredying/gitProject/nvm/versions/node/v6.13.1/lib
├── babel-cli@6.26.0
├── fanyi@1.2.1
├── hexo-cli@1.1.0
├── http-server@0.11.1
├── npm@3.10.10
└── supervisor@0.12.0
i use nvm install 8 --reinstall-packages-from=6
Downloading and installing node v8.10.0...
Downloading https://npm.taobao.org/mirrors/node/v8.10.0/node-v8.10.0-darwin-x64.tar.gz...
######################################################################## 100.0%
Computing checksum with shasum -a 256
Checksums matched!
Now using node v8.10.0 (npm v5.6.0)
VERSION=''
Reinstalling global packages from v6.13.1...
No installed global packages found...
Linking global packages from v6.13.1...
No linked global packages found...
i find the npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/Users/fredying/gitProject/nvm/versions/node/v6.13.1/bin/node',
1 verbose cli '/Users/fredying/gitProject/nvm/versions/node/v6.13.1/bin/npm',
1 verbose cli 'list',
1 verbose cli '-g',
1 verbose cli '--depth=0' ]
2 info using npm@3.10.10
3 info using node@v6.13.1
4 verbose stack Error: EPERM, Operation not permitted
4 verbose stack at /Users/fredying/gitProject/nvm/versions/node/v6.13.1/lib/node_modules/npm/node_modules/uid-number/uid-number.js:49:16
4 verbose stack at ChildProcess.exithandler (child_process.js:190:7)
4 verbose stack at emitTwo (events.js:106:13)
4 verbose stack at ChildProcess.emit (events.js:191:7)
4 verbose stack at maybeClose (internal/child_process.js:920:16)
4 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)
5 verbose cwd /Users/fredying
6 error Darwin 17.3.0
7 error argv "/Users/fredying/gitProject/nvm/versions/node/v6.13.1/bin/node" "/Users/fredying/gitProject/nvm/versions/node/v6.13.1/bin/npm" "list" "-g" "--depth=0"
8 error node v6.13.1
9 error npm v3.10.10
10 error code [ 'EPERM',
10 error code 'EPERM',
10 error code index: 0,
10 error code input: 'EPERM, Operation not permitted' ]
11 error errno 1
12 error EPERM, Operation not permitted
13 error If you need help, you may report this error at:
13 error <https://github.com/npm/npm/issues>
14 verbose exit [ 1, true ]
What are the permissions on $NVM_DIR
? Can you make sure that your user account has full permissions on the entire tree underneath there?
use command
nvm install 8.9.0 --reinstall-packages-from=6.9.0
, but not nothing installed. info: