My version of node is always v0.6.1-pre even after I install brew node and NVM install v0.6.19.
My node version is:
node -v
v0.6.1-pre
NVM says this (after I install a version of node for the first time in one bash terminal):
nvm ls
v0.6.19
current: v0.6.19
But when I restart bash, this is what I see:
nvm ls
v0.6.19
current: v0.6.1-pre
default -> 0.6.19 (-> v0.6.19)
So where is this phantom node 0.6.1-pre version and how can I get rid of it? I'm trying to install libraries via NPM so that I can work on a project.
I tried using BREW to update before NVM, using "brew update" and "brew install node". I've tried deleting the "node" directory in my /usr/local/include and the "node" and "node_modules" in my "/usr/local/lib". I've tried uninstalling npm and reinstalling it following these instructions.
All of this because I was trying to update an older version of node to install the "zipstream" library. Now there's folders in my users directory, and the node version STILL isn't up to date, even though NVM says it's using 0.6.19.
Ideally, I'd like to uninstall nodejs, npm, and nvm, and just reinstall the entire thing from scratch on my system.
First of all, you need to deactivate node: (mac) after install new node version.
This is removed /Users/user_name/.nvm/*/bin from $PATH
And after that node was updated
maybe you need to make
it helps with problem of symlink
First:
To recap, the best way (I've found) to completely uninstall node + npm is to do the following:
go to
/usr/local/lib
and delete any node and node_modulesgo to
/usr/local/include
and delete any node and node_modules directoryif you installed with
brew install node
, then runbrew uninstall node
in your terminalcheck your Home directory for any "local" or "lib" or "include" folders, and delete any "node" or "node_modules" from there
go to /usr/local/bin and delete any node executable
You may need to do the additional instructions as well:
Source: tonyMtz
(server: ubuntu 14)
1.) install nvm (node version manager) https://github.com/creationix/nvm
2.) nvm install node
3.) npm -v (inquire npm version => 3.8.6)
4.) node -v (inquire node version => v6.0.0)
I'm not sure if it's because I had an old version (4.4.5), or if it's because I used the official installer, but most of the files referenced in other answers didn't exist on my system. I only had to remove the following:
I decided to keep
~/.npm
because I was planning on reinstalling Node with Homebrew.I had installed Node.js from source downloaded from the git repository. I installed with:
Because the make file supports it, I can do: