2012年6月23日 星期六

在 Ubuntu 12.04 中安裝 Node.js

在安裝完 Ubuntu 12.04 後, 打開 terminal 後輸入以下命令即可:


sudo apt-get install python-software-properties
sudo apt-add-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs npm

完成後安裝 module:
npm install express
npm install now

.... error: g++ command not found // 找不到 g++, 另外安裝如下
sudo apt-get install g++

npm install now
npm install request

沒有留言:

張貼留言