美文网首页
npm 报 code EINTEGRITY(一)

npm 报 code EINTEGRITY(一)

作者: 闲鱼尼克 | 来源:发表于2017-09-25 15:16 被阅读540次
npm -v
5.3.0
npm install -g ionic cordova

报错

code EINTEGRITY

sha1-Jw4Gtnsq6UvP7mWS7TnrQjA9GG8= integrity checksum failed when
using sha1: wanted sha1-Jw4Gtnsq6UvP7mWS7TnrQjA9GG8= but got sha1-
Wg5NTEOUf8duIeAhYHgcCZD6Jd4=. (824718 bytes)

解决方案:转为使用npm的淘宝镜像cnpm, 运行

npm install -g cnpm --registry=https://registry.npm.taobao.org

cnpm install -g ionic cordova

相关文章

网友评论

      本文标题:npm 报 code EINTEGRITY(一)

      本文链接:https://www.haomeiwen.com/subject/xycdextx.html