http://nodejs.org/dist/v0.10.20/node-v0.10.20-linux-x64.tar.gz
download and build from source
cd /tmp
wget http://nodejs.org/dist/v0.10.20/node-v0.10.20.tar.gz
tar -xf node-v0.10.20-linux-x64.tar.gz
cd node-v0.10.20-linux-x64/
configure, build and install
export PREFIX=/usr/local # or whatever your prefix is
./configure --prefix=$PREFIX
export LINK=g++ # only required if you're building on NFS
make
make install
clean up temporary files
rm -rf /tmp/node-v0.10.20-linux-x64*
add node to your path
export PATH=$PREFIX/bin:$PATH
display node and npm versions
node --version
v0.10.20
npm --version
1.3.11
install express.js
npm install -g express
display express version
express --version
3.4.0
install yeoman
npm install -g yo
install yeoman angular generator
npm install -g generator-angular
create angular app
yo angular app-name
serve angular app
grunt server
No comments:
Post a Comment