JavaScript package manager
Node.js package ecosystem, npm, is the largest ecosystem of open source libraries in the world - npmjs.com
npm makes it easy for JavaScript developers to share and reuse code, and it makes it easy to update the code that you're sharing - docs.npmjs.com
YOUTUBE pa4dc480Apo What is npm?
# Updating
Node comes with npm installed so you should have a version of npm. However, npm gets updated more frequently than Node does, so you'll want to make sure it's the latest version.
sudo npm install npm -g
Test: Run:
npm -v
The version should be higher than 2.1.8.
# Installation
You can find the latest installation instructions here: npmjs.com Npm now comes bindled with node now - nodejs.org
YOUTUBE wREima9e6vk Installing Node.js and updating npm (Mac/Unix)
If you prefer a fancy install (Unix) - there's a pretty robust install script at https://www.npmjs.org/install.sh. You can download that and run it.
curl -L https://npmjs.org/install.sh | sh
# Uninstalling
In case you need to:
sudo npm uninstall npm -g
Or, if that fails:
sudo make uninstall
# See also - Node.js - NPM FAQ - NPM: package distribution tags - package.json - npmjs.com