2017-07-25 27 views
0

我安裝角CLI成功,但是當我試圖創建一個新的項目,它拋出一個錯誤一個新項目:建立出錯採用了棱角分明-CLI

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\node-sass): 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: sha1-0JydEXlkEjnRuX/8YjH9zsU+FWg= integrity checksum failed when using sha1: wanted sha1-0JydEXlkEjnRuX/8YjH9zsU+FWg= but got sha1-Au9QsWhf0hcUTeZv8pFTf+AhiCg=. (81395 bytes) 

npm ERR! code EINTEGRITY 
npm ERR! sha1-5PZh90ZxHojsvqdqPJBbq/l9MVo= integrity checksum failed when using sha1: wanted sha1-5PZh90ZxHojsvqdqPJBbq/l9MVo= but got sha1-VmZmdoabDu7UgY26v1YHr9hYUTk=. (48762 bytes) 

npm ERR! A complete log of this run can be found in: 
npm ERR!  C:\Users\raman\AppData\Roaming\npm-cache\_logs\2017-07-25T09_26_53_359Z-debug.log 

Package install failed, see above. 
Package install failed, see above. 

我如何解決這個錯誤!

在此先感謝!

+1

試試這個:「故宮緩存清理」並安裝再次 – Ludwig

+0

@Ludwig我想你的解決方案,但問題的存在 – Raman

+0

你的cli,npm和node.js版本是什麼? –

回答

1

嘗試

npm set registry https://registry.npmjs.org/ 
rm -rf node_modules/ 
npm cache clean --force 
npm cache verify 
npm install 

或還你可以放棄npm並做

yarn install