tedshd's DevNote

Develop & Design Note by Ted

Node.js - install

Node.js - install


利用 homebrew 安裝

brew install node

Refer - Install Node.js and npm using Homebrew on OS X


sudo apt-get install nodejs-legacy

sudo apt-get install npm

Refer - Can not install packages using node package manager in Ubuntu


Now node merge iojs and version update to v4

But now homebrew not updgrade to v4

So i use nvm

Refer - Node.js 安裝與版本切換教學 (for MAC)

npm upgrade node version

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

Refer - Upgrade Node.js via NPM

comments powered by Disqus