npm ERR! code EINTEGRITY

安装依赖报错

npm ERR! code EINTEGRITY

npm ERR! sha1-PFtv1/beCRQmkCfwPAlGdY92c6Q= integrity checksum failed when using sha1: wanted sha1-PFtv1/beCRQmkCfwPAlGdY92c6Q= but got sha1-SSVTBccHbxvQCiqnpX9UXhZ4Ig=. (3274892 bytes)


npm ERR! code EINTEGRITY_第1张图片

解决办法:

1.npm i -g npm


npm ERR! code EINTEGRITY_第2张图片

2.grep -ir "xxx" ~/.npm

xxx就是npmERR第二行sha1-PFtv到.前面

3之后npm install 依赖就装好了


npm ERR! code EINTEGRITY_第3张图片

你可能感兴趣的:(npm ERR! code EINTEGRITY)