Node install bug

I am trying to install node + npm using brew and keep getting this:

$ brew install node Warning: node -0.10.33_1 is already installed, it just isn't linked

Any ideas what is going on and how to fix it?

+3


source to share


3 answers


Try it brew doctor

, which should give you some idea of ​​the problem. Also, I highly recommend not installing node directly using brew, but actually installing nvm

via ( brew install nvm

)



nvm

is a node version manager that allows you to install different versions of node and quickly swap them among themselves.

+2


source


I have the same problem.

but i try many methods (like nvm, uninstall, brew doctor, blabla ...) and decides to use http://nodejs.org/ pkg.



it would install completely without homebrew.

but if you are so likely using homebrew I have no idea about that.

+1


source


I had this problem too. This is because some of the remaining installation is not running and using the pkg installer from nodejs.org. Just:

brew uninstall node
rm -rf /usr/local/include/node
brew install node

      

And you're good to go. You might be able to skip the uninstall and just execute brew link node

, but I haven't tried that.

0


source







All Articles