npm 5.3.0 install 时报错 code EINTEGRITY

在用npm5.3.0 install 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 5.3.0 install 时报错 code EINTEGRITY)