0

Is there a way to remove all nodejs and npm related data from an Ubuntu distro? I may have done a bad npm install and now I can't install sails.js properly.

I've tried apt-get remove and apt-get purge for both nodejs and npm, as well as npm uninstall. I'm looking for a brute clean slate for everything nodejs and npm related.

Cheers!

Travis Webb
  • 13,507
  • 6
  • 51
  • 101
Francis
  • 117
  • 1
  • 8
  • possible duplicate of [How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X)](http://stackoverflow.com/questions/11177954/how-do-i-completely-uninstall-node-js-and-reinstall-from-beginning-mac-os-x) – xShirase Oct 06 '14 at 18:39
  • I've tried this--removing node_modules. It didn't work. I was able to remove the directory, but when I reinstalled it and worked to install sailsjs, it still messed up. – Francis Oct 06 '14 at 18:43
  • Removing all npm modules and re-intalling npm seems a little drastic. What are the errors you're getting with the sails install? – HeadCode Oct 06 '14 at 18:48
  • Maybe then the problem is elsewhere? What exactly is the error you are getting? – Kevin B Oct 06 '14 at 18:48
  • Instead of completely restarting (removing and reinstalling), how about post your errors so we can rectify the real problem? –  Oct 06 '14 at 19:10

0 Answers0