错误:npm没有安装包

时间:2017-10-06 18:14:09

标签: angularjs node.js

C:\Users\Wallay Masroof\Desktop\quickstart-master>npm install
npm WARN deprecated express@2.5.11: express 2.x series is deprecated
npm WARN deprecated connect@1.9.2: connect 1.x series is deprecated
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v6.11.4
npm ERR! npm  v3.10.10

npm ERR! shasum check failed for C:\Users\WALLAY~1\AppData\Local\Temp\npm-11652-be3fdaea\registry.npmjs.org\jsprim\-\jsprim-1.4.1.tgz
npm ERR! Expected: 313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2
npm ERR! Actual:   b2b66a6002872c52d4a30a7f8208588eef541e5d
npm ERR! From:     https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.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:\Users\Wallay Masroof\Desktop\quickstart-master\npm-debug.log

每当我尝试安装npm时,它都会显示此错误。它甚至没有安装在我从GitHub克隆的角度快速入门中。

1 个答案:

答案 0 :(得分:0)

我尝试在我的fedora上安装一切正常,我也尝试在Windows 10上安装,并且也很顺利。

我建议您使用

清理npm缓存
npm cache clean

如果有必要

npm cache clean --force

或更多&#34;暴力&#34;通过在以下位置删除npm-cache文件夹的方式:

%AppData%/npm-cache