Reputation: 12399
What is the cleanest or most optimal way to keep an up-to-date installation of Node along with its accompanying packages on OS X? Homebrew always seems a touch behind (except for head
).
Additionally, an interesting observation from the Node.js wiki says:
Warning: brew installs are known to be buggy
Further, is there a preferred method to update the installed packages as well (across node updates and just generally updating them)?
Upvotes: 0
Views: 1195
Reputation: 6339
I personally switched back to homebrew because installing the official package would foul up my path and which version of node I use.
And node packages shall not be installed globally so every new npm install
will fetch the newest version if asked to do so.
Upvotes: 0
Reputation: 159135
I use a tool called NVM to manage Node.js installation; you can install and switch to various versions of Node.js with a single command. You can find NVM at https://github.com/creationix/nvm.
You may be interested in the first half of this screencast that covers installing and using NVM (full disclosure: I made the screencast).
Upvotes: 3