sne*_*egi 4 node.js npm npm-install angular-cli angular
我正在使用节点v6.11.5和npm 3.10.10以及64位操作系统,并且在安装@ angular/cli时我收到以下错误:
C:\WINDOWS\system32>npm install -g @angular/cli
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "@angular/cli"
npm ERR! node v6.11.5
npm ERR! npm v3.10.10
npm ERR! shasum check failed for C:\Users\Shubham\AppData\Local\Temp\npm-6192-9e
acb63c\registry.npmjs.org\rxjs\-\rxjs-5.5.2.tgz
npm ERR! Expected: 28d403f0071121967f18ad665563255d54236ac3
npm ERR! Actual: c2b697120c7dc0e6728da0e7636b90e15723cc24
npm ERR! From: http://registry.npmjs.org/rxjs/-/rxjs-5.5.2.tgz
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! C:\WINDOWS\system32\npm-debug.log
Run Code Online (Sandbox Code Playgroud)
我试图从昨晚开始解决这个问题,但每次这次shasum检查失败都是我得到的.我尝试了以下事项:
ste*_*nja 21
本地设置问题很难调试,因为有大量的试验和错误,列出了您尝试过的内容以及由此产生的结果.
这是对建议列表的尝试.我怀疑你已经尝试了很多这些,我希望这有助于组织你的努力.
npm get registry期望:https://registry.npmjs.org/)npm install npm@latest -gpackage-lock.jsonsudo npm uninstall npm -g一路上,我确实遇到过类似的github问题:
嗨@Rogasch我建议你完全卸载node和npm.同时删除npm和npm-cache文件夹.并使用node-v6.11.2-x86.msi安装程序重新安装.3❤️1
我有同样的问题和npm install -g npm为我修复了它
当我在提交中包含package-lock.json时,我遇到了这个问题.删除package-lock.json后,我可以再次运行npm install而不会出错.
我删除了该文件package-lock.json并重新运行npm install。
| 归档时间: |
|
| 查看次数: |
14613 次 |
| 最近记录: |