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

后端 未结 27 1763
闹比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:30

    There are several valid and helpful responses here, but I would like to add that in my case the simplest solution was:

    1. Delete package-lock.json;
    2. Remove folder AppData\Local\npm\cache or AppData\Roaming\npm\cache;
    3. Remove folder node_modules.staging;
    4. Run npm install again.

    After that everything ran smoothly.

提交回复
热议问题