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

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

    SherylHohman's answer solved the issue I had, but only after I switched my internet connection. Intitially, I was on the hard-line connection at work, and I switched to the WiFi connection at work, but that still didn't work.

    As a last resort, I switched my WiFi to a pocket-WiFi, and running the following worked well:

    npm cache verify
    
    npm install -g create-react-app
    
    create-react-app app-name
    

    Hope this helps others.

提交回复
热议问题