How to uninstall n and all node versions installed by n

You need to manually remove Node versions installed by n and set the correct Node system version.

sudo n prune
sudo npm uninstall -g n
sudo rm -r /usr/local/n
sudo rm /usr/local/bin/node 

See the following issues for n on GitHub:

  • Cant uninstall n and node #327
  • Simple command to switch back to the system installation of Node #486

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)