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

后端 未结 27 1678
闹比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

    I am behind my organization's proxy, running the following commands fixed the issue for me

    npm config set proxy http://proxy.yourproxydomain.com:port
    npm config set https-proxy http://proxy.yourproxydomain.com:port
    npm config set strict-ssl false
    npm config set registry https://registry.npmjs.org/
    

提交回复
热议问题