npm ERR! code EINTEGRITY npm! ERR! shal-

npm ERR! code EINTEGRITY
npm ERR! sha1-nbqdpC/e8IOA7poHctXL5+bVXsE= integrity checksum failed when using sha1: wanted sha1-nbqdpC/e8IOA7poHctXL5+bVXsE= but got sha1-0X7bigKCiloFbWTRvT6KhLKF9Y0=. (8991710 bytes)

 解决方案:

先运行 

npm i -g npm

 再运行 

grep -ir "sha1-nbqdpC/e8IOA7poHctXL5+bVXsE= integrity checksum failed when using sha1: wanted sha1-nbqdpC/e8IOA7poHctXL5+bVXsE= but got sha1-0X7bigKCiloFbWTRvT6KhLKF9Y0=" ~/.npm

 此时再运npm install就成功了。

npm install 

 http://blog.csdn.net/Mr_rain/article/details/74551497

 

posted @ 2017-09-05 15:25  蒋励  阅读(4336)  评论(0编辑  收藏  举报