面对安装凉亭的Checksum问题

时间:2016-03-05 07:19:35

标签: bower npm-install

D:\businessapp>npm install -g bower
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "bower"
npm ERR! node v5.6.0
npm ERR! npm  v3.6.0

npm ERR! shasum check failed for C:\Users\USER\AppData\Local\Temp\npm-4160-e9917
a21\registry.npmjs.org\bower\-\bower-1.7.7.tgz
npm ERR! Expected: 2fd7ff3ebdcba5a8ffcd84c397c8fdfe9f825f92
npm ERR! Actual:   399d3692e031c8527fa361cd93915f30cec3b0c2
npm ERR! From:     https://registry.npmjs.org/bower/-/bower-1.7.7.tgz
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

是否与下载内容相关?

1 个答案:

答案 0 :(得分:0)

这是一个校验和问题。找到here的解决方案。

解决方案是:

npm cache clean bower

然后再次运行install命令。