2017-10-06 178 views
1
C:\Users\Wallay Masroof\Desktop\quickstart-master>npm install 
npm WARN deprecated [email protected]: express 2.x series is deprecated 
npm WARN deprecated [email protected]: connect 1.x series is deprecated 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]^1.0.0 (node_modules\chokidar\node_modules\fsevents): 
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: 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克隆的角度快速启动中。错误:npm不安装软件包

+0

'node'是否正确安装?在终端中运行'node -v'并查看它输出的内容。 –

+0

@DragoşPaulMarinescu是它已安装且node -v显示v6.11.4 –

+0

此文件包含什么? 'C:\ Users \ Wallay Masroof \ Desktop \ quickstart-master \ npm-debug.log' –

回答

0

我尝试在我的fedora上安装一切正常的东西,我也尝试安装在windows 10上,并且进行得很顺利。

我建议你

npm cache clean 

,并在必要

npm cache clean --force 

或在deletting NPM-缓存文件夹更 “猛烈” 的方式清洁您的NPM缓存:

%AppData%/npm-cache 
+0

我清理了缓存,但是我仍然收到相同的错误.. :( –

+0

当我看到一个类似的错误,当连接出现故障并且文件在下载过程中被破坏时。 –

+0

我正在阅读文档,您可以尝试清理你的c:\ windows \ temp作为npm在那里存储一些临时文件 –