Skip to main content

Tedshd's Dev note

Node.js - install

Table of Contents

# Node.js - install

## Mac

利用 homebrew 安裝

brew install node

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

## Ubuntu

sudo apt-get install nodejs-legacy

sudo apt-get install npm

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

## Update

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