npm 报 code EINTEGRITY(一)

2017-09-25  本文已影响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
上一篇下一篇

猜你喜欢

热点阅读