reinstall all packages npm code example
Example 1: uninstall node js and npm ubuntu
sudo apt-get purge --auto-remove nodejs
Example 2: npm reinstall
npm install -g npm-reinstall# or yarn global add npm-reinstall
Example 3: how to uninstall npm packages
npm uninstall --save <package_name>
npm un <package_name>