npm is a package manager for node. You can use it to install and publish your node programs. It manages dependencies and does other cool stuff.
Install Node.js
(npm comes with it.)
Because a one-line install is one too many.
There's a pretty thorough install script at http://npmjs.org/install.sh
For maximum security, make sure to thorougly inspect every program that you run on your computer!