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