我正在关注本机文档,然后在终端上写npm install -g react-native-cli
时出现错误
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://npm.community>
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/macbookpro/.npm/_logs/2018-12-11T21_25_59_667Z-debug.log
日志是
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli 'react-native-cli' ]
2 info using npm@6.4.1
3 info using node@v10.14.1
4 verbose npm-session 31fa6697aadccd0d
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 timing npm Completed in 18435ms
8 error cb() never called!
9 error This is an error with npm itself. Please report this error at:
10 error <https://npm.community>
我已经做了here所说的使用sudo npm cache verify
和sudo npm cache clean
的操作,但是它什么也没做,我也已经尝试卸载并重新安装nodejs,再次出现相同的错误,
我也已经使用npm install -g npm@5.4.2
降级了npm版本,它没有做任何事情,并且与先前的错误相同,我还可以做些什么来解决该问题?
我的计算机是macos high sierra,我的节点版本是v10.14.1