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
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