Can’t install any NPM package, error 4058

Try these steps:

  • Delete package-lock.json and run NPM again.
  • Ensure no other processes of node.js are running (check task manager)
  • If you are using visual studio code, close it and try running npm install again.
  • If all else fails, restart your computer.

See thread here: https://github.com/npm/npm/issues/17444

Leave a Comment