npm install 报错npm ERR! code EINTEGRITY

今天在使用 npm install 安装包的时候不知为何报错

1
2
npm ERR! code EINTEGRITY
npm ERR! sha1-RjgRh59XPUUVWtap9D3ClujoXrw= integrity checksum failed when using sha1: wanted sha1-RjgRh59XPUUVWtap9D3ClujoXrw= but got sha1-RzkFn3XG1eD9OH6j6cMfmsN5tdw=. (32243 bytes)

在github上找到了相关的issue

1
npm cache clean --force