Completely clean server from NodeJs and npm

I have upgraded one nodejs installation from 0.4.2 to 0.8.12 but, since then, the js server I have, started crashing with seg fault. As I inherited this application, I have no idea what was previously installed and how was it was maintained. Npm seems to be installed only locally, but I can't seem to call it the right way.

So this is all the info about the problem. My question is:

Can I completely remove nodejs and npm so I can do a fresh install?

A better approach would be to install nvm . https://github.com/creationix/nvm

Use nvm to install different versions of node . Then try different versions , say 0.5 then 0.6 and checkout at which version does the app actually break. And then refer to the critical changes made in that version and modify your code accordingly.

This would be a good software practice .