Can’t update npm packages: ERR! code EEXIST

Sometimes, while using npm commands in the terminal it throws error as follows
npm ERR! code EEXIST

Solution:

Uninstall the current node version.
Reinstall

npm uninstall -g your-package-name
npm install -g your-package-name@latest

Leave a comment

Your email address will not be published. Required fields are marked *