YeoMan(3)Update Version and Generate a Angular Bootstrap Static Pages
YeoMan(3)Update Version and Generate a Angular Bootstrap Static Pages
1. Upgrade and check the NODE version
Download the binary from here http://nodejs.org/download/, http://nodejs.org/dist/v0.10.31/node-v0.10.31-darwin-x64.tar.gz
but my local machine have the v0.11.13 version, I may download and install that from github, let’s upgrade to the latest.
https://github.com/joyent/node
>git clone https://github.com/joyent/node.git
>git checkout master
>git pull origin master
>./configure --prefix=/Users/carl/tool/node-v0.13.0-pre
>make
>make install
>node --version
v0.13.0-pre
My version is v0.10.32 now.
Upgrade and check the NPM version
>npm update npm -g
>npm --version
2.0.0-beta.0
My version is 1.4.28.
It seem they are not stable. So I will use there version.
>node --version && npm --version
v0.11.13
1.4.24
>sudo npm install --g yo
>sudo npm install bower -g
>sudo npm install grunt -g
>yo --version && bower --version && grunt --version
1.2.1
1.3.9
grunt-cli v0.1.13
Here is the version I current have on ubuntu 14.04
>yo --version && bower --version && grunt --version
1.3.0
1.3.12
grunt-cli v0.1.13
Find all the generators
http://yeoman.io/generators/
>sudo npm install -g generator-angular-bootstrap
>sudo npm install -g generator-angular-fullstack
Actually I get some version problem on MAC book. So I prefer to get a ubuntu virtual machine running with that.
>sudo apt-get update
>sudo apt-get install nodejs
>sudo apt-get install npm
>sudo ln -s /usr/bin/nodejs /usr/bin/node
>node --version && npm --version && python --version
v0.10.25
1.3.10
Python 2.7.6
>sudo npm install -g yo
>sudo npm install -g bower
>sudo npm install -g grunt
>sudo npm update -g yo
>yo --version && bower --version && grunt --version
1.1.2
1.3.12
grunt-cli v0.1.13
Seem to me the version of NPM and YO is not ok.
>sudo apt-get install python-software-properties
>sudo apt-add-repository ppa:chris-lea/node.js
After add the dependency, install the nodeJS again.
>node --version && npm --version
v0.10.32
1.4.28
For the latest NPM, I need this command to install grunt
>sudo npm install -g grunt-cli
>yo --version && bower --version && grunt --version
1.3.0
1.3.12
grunt-cli v0.1.13
>sudo chown -R $USER ~/.npm
This do help on the permission issue for yeoman generator.
2. Create vm for FrontEnd
>sudo apt-get install python-software-properties
>sudo apt-add-repository ppa:chris-lea/node.js
>sudo apt-get install git
>sudo apt-get install nodejs
Link nodejs to node
>sudo ln -s /usr/bin/nodejs /usr/bin/node
>sudo apt-get install npm
>node --version && npm --version
v0.10.25
1.3.10
>sudo npm install -g yo
>sudo npm install -g bower
>sudo npm install -g grunt-cli
>grunt --version && bower --version && yo --version
grunt-cli v0.1.13
1.3.12
1.3.0
Make sure the permission is correct for NPM
>sudo chown -R $USER ~/.npm
Install the yeoman generators
>sudo npm install -g generator-angular
>sudo npm install -g generator-angular-fullstack
>sudo npm install -g generator-restangular
It seems to me only generator-angular is the latest.
Run this to update the yo
>sudo npm update -g yo
Remove all the other generator, only keep generator-angular
>sudo npm remove -g generator-karma
I place a sample in directory easynodejs/yeosample
References:
https://github.com/joyent/node/tree/v0.12
http://yeoman.io/generators/
https://github.com/aacerox/node-rest-client