2017-10-06 180 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在那裏存儲一些臨時文件 –