我的Ubuntu 16.04上安装了node和nodenv 我想安装凉亭
npm install -g bower
我得到了这个:
npm WARN已弃用bower@1.8.2:... psst!你的项目可以停止 随时工作,因为它的依赖关系可以改变。防止 通过迁移到Yarn: https://bower.io/blog/2017/how-to-migrate-away-from-bower/
错误的ERR! Linux 4.4.0-94-generic
错误的ERR! argv“/home/mypc/.nodenv/versions/4.6.0/bin/node""/home/mypc/.nodenv/versions/4.6.0/bin/npm”“install”“ - g” “亭子”
错误的ERR!节点v4.6.0
错误的ERR! npm v2.15.9
错误的ERR! /tmp/npm-4594-c12fe2a2/registry.npmjs.org/bower/-/bower-1.8.2.tgz shasum检查失败 错误的ERR!预计:adf53529c8d4af02ef24fb8d5341c1419d33e2f7
错误的ERR!实际:ca90d0b92af2557a3f8e9116ba83b3fc4ad7828
错误的ERR!来自:https://registry.npmjs.org/bower/-/bower-1.8.2.tgz
npm ERR!
错误的ERR!如果您需要帮助,可以在以下位置报告此错误:
错误的ERR! https://github.com/npm/npm/issues>
答案 0 :(得分:0)
npm客户端无法验证来自npm注册表的下载文件:
shasum check failed for /tmp/npm-4594-c12fe2a2/registry.npmjs.org/bower/-/bower-1.8.2.tgz
Expected: adf53529c8d4af02ef24fb8d5341c1419d33e2f7
Actual: ca90d0b92af2557a3f8e9116ba83b3fc4ad7828