remove sudo install npm


npm uninstall xxxx


Apparently, there was a “/Users/myusername/local” folder that contained a “include” with “node” and “lib” with “node” and “node_modules”. How and why this was created instead of in my “/usr/local” folder, I do not know.

Deleting these local references fixed the phantom v0.6.1-pre. If anyone has an explanation, I’ll choose that as the correct answer.


To recap, the best way (I’ve found) to completely uninstall node + npm is to do the following:

  1. go to /usr/local/lib and delete any node and node_modules
  2. go to /usr/local/include and delete any node and node_modules directory
  3. if you installed with brew install node, then run brew uninstall node in your terminal
  4. check your Home directory for any local or lib or include folders, and delete any node ornode_modules from there
  5. go to /usr/local/bin and delete any node executable

You may need to do the additional instructions as well:

  1. sudo rm /usr/local/bin/npm
  2. sudo rm /usr/local/share/man/man1/node.1
  3. sudo rm /usr/local/lib/dtrace/node.d
  4. sudo rm -rf ~/.npm
  5. sudo rm -rf ~/.node-gyp
  6. sudo rm /opt/local/bin/node
  7. sudo rm /opt/local/include/node
  8. sudo rm -rf /opt/local/lib/node_modules

Then download nvm and follow the instructions to install node. The latest versions of node come with npm, I believe, but you can also reinstall that as well.

6 Responses so far.

  1. quest Bars says:
    Great post. I am going through many of these issues
    as well..
  2. quest bars says:
    I am in fact thankful to the owner of this
    website who has shared this wonderful article at here.
  3. I’ve been browsing on-line more than 3 hours today, but I never found any interesting article like yours. It¦s lovely worth sufficient for me. In my opinion, if all site owners and bloggers made good content material as you did, the web will be much more useful than ever before.
  4. Thanks a lot for providing individuals with remarkably breathtaking chance to check tips from here. It is usually very brilliant and also full of a good time for me and my office peers to search your website at the very least 3 times weekly to learn the fresh items you have got. And of course, I’m usually fascinated with all the astonishing opinions you serve. Certain two points in this article are in truth the most impressive we have ever had.
  5. Thanks so much for giving everyone remarkably brilliant possiblity to discover important secrets from this website. It’s always very pleasant and as well , stuffed with fun for me personally and my office colleagues to search your site at least thrice in one week to learn the fresh things you have. And indeed, we’re usually astounded for the fantastic inspiring ideas you give. Some 1 ideas in this posting are clearly the very best I have ever had.
  6. A lot of thanks for all your valuable hard work on this web page. My mom really likes setting aside time for investigations and it is easy to understand why. Most people hear all concerning the lively mode you make reliable information by means of your website and therefore attract participation from people about this concept plus my child is in fact starting to learn a lot of things. Take pleasure in the remaining portion of the new year. Your conducting a good job.