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,
sudo npm install
package-lock.json
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!!