When I run `npm install`, it returns with `ERR! code EINTEGRITY` (npm 5.3.0)

后端 未结 27 1407
闹比i
闹比i 2020-11-28 02:29

I am getting this error while running sudo npm install. On my server, npm was installed earlier. I\'ve tried to delete the package-lock.json file,

27条回答
  •  有刺的猬
    2020-11-28 02:44

    I was stuck at this for a long time and this is what helped me.

    Try this:

    npm cache clean --force
    npm install --update-binary --no-shrinkwrap
    

    Found this answer after digging into GitHub issues!!

提交回复
热议问题