npm install 提示sha1错误的解决办法
错误类似:
解决办法:命令行模式下执行 npm cache verify
另外搜集vue错误放这里。未验证。
npm install
npm ERR! code EINTEGRITY
npm ERR! sha1-VNjrx5SfGngQkItgAsaEFSbJnVo= integrity checksum failed when using sha1: wanted sha1-VNjrx5SfGngQkItgAsaEFSbJnVo= but got sha1-uIxYZhgBXoyNhah6nWDV HgUP1Bk=. (65013 bytes)
解决方案
1 2 3 4 5 |
npm <span class="hljs-built_in">set</span> registry https:<span class="hljs-comment">//registry.npmjs.org/</span> rm <span class="hljs-attribute">-rf</span> node_modules<span class="hljs-subst">/</span> npm <span class="hljs-keyword">cache</span> clean <span class="hljs-subst">--</span>force npm <span class="hljs-keyword">cache</span> verify npm install |
噢!评论已关闭。