Install node. js using Software Center By default, then refer to Https://famo.us/install for installation
1.sudo apt-get Install git
2. npm install -g yo grunt-cli bower generator-famous
after the implementation of the results reported following error using NPM WARN This failure might is due to the use of the legacy binary "node"
Search for the following ways to install the latest node. js
--------------------------------------------------------------------------------------------------------------- -
1. Determine/etc/apt/sources.list中存在如下源信息
# in /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu quantal main restricted universe
deb http://security.ubuntu.com/ubuntu quantal-security main restricted universe
deb http://archive.ubuntu.com/ubuntu quantal-updates main restricted universe
2. Install node. js by doing the following:
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update sudo apt-get install nodejs
3. Install NPM by doing the following:
sudo apt-get install npm
----------------------------------------------------------------------------------------------------------
3.mkdir newProject && cd newProject
4.yo famous
5.grunt serve
Reference Links:
http://slopjong.de/2012/10/31/how-to-install-the-latest-nodejs-in-ubuntu/