I know there are several "How do I install node.js" tutorials, blogs, etc.
Here is what it worked for me:
- In theory you install node using brew:
brew install node
(orbrew upgrade node
to upgrade current node installation) and then npm :curl http://npmjs.org/install.sh | sh
.curl https://npmjs.org/install.sh | sh
- But in practice, At least me, I always get permission errors, link errors, it looks pretty bad. It is because I need to set adjust my permissions first :
sudo chown -R $USER /usr/local
. -
Then, If you got:
"Error: The linking step did not complete successfully."
finish node installation with
brew link node
. - Now installing npm should work flawless too:
curl http://npmjs.org/install.sh | sh
Other References
0 comments :
Post a Comment