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
网友评论