2. Install Node for
Development
Mac OS X with Homebrew
brew search node
brew install node
Ubuntu from package manager
sudo apt-get install nodejs npm
CentOS from package manager
yum install nodejs npm
3. Install Node for
Development
Node.js on Microsoft Windows with Chocolatey Gallery[1]
Powershell and .NET framework 4.0 in Windows machine
Install Chocolatey Gallery
@powershell -NoProfile -ExecutionPolicy unrestricted -Command
"iex ((new-object net.webclient).DownloadString('https://
chocolatey.org/install.ps1'))" && SET PATH=%PATH%;
%ALLUSERSPROFILE%chocolateybin
Install Node.js and NPM
choco install nodejs.install
4. Node commands
Check node version
node --version
Check Google V8 and OpenSSL version
node -e "console.log(process.versions)"
!
6. nvm
Setup nvm
npm install -g nvm
Install node version
npm install 0.10.29
Use the specific node version
npm use 0.10.29
Disable node version
npm deactivate