Skip to content

Instantly share code, notes, and snippets.

@chen206
Last active December 28, 2015 20:29
Show Gist options
  • Save chen206/7557549 to your computer and use it in GitHub Desktop.
Save chen206/7557549 to your computer and use it in GitHub Desktop.
node, yeoman, bower, grunt, angular, karma, jasmine, os x maverick, windows

NodeJS

Ubuntu

sudo apt-get update
sudo apt-get install -y python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs  #npm is not needed

OS X

ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
brew doctor
brew install node

Using the Safari browser (not Chrome, Firefox or Opera) on Mac OS X 10.9 (Mavericks) visit https://registry.npmjs.org

Click the Show certificate button and then check the checkbox labelled Always trust. Then click Continue and enter your password if required.

curl https://npmjs.org/install.sh | sh
curl http://npmjs.org/install.sh -L -o -| sh

/etc/profile (or ~/.bash_profile) ???

export NODE_PATH="/usr/local/lib/node_modules:/usr/local/lib/node"
export PATH="/usr/local/share/npm/bin:$PATH"

Windows

http://nodejs.org/download/

Ruby

Windows

http://rubyinstaller.org/downloads/
PATH=C:\Program Files\nodejs;C:\Ruby200-x64\bin;C:\Program Files (x86)\Git\bin

compass

OS X

gem update --system
sudo gem install compass

Windows

gem update --system
gem install compass

yo

npm install -g yo

init project

npm install
bower install

create project

npm install -g generator-angular
yo angular
bower install angular-ui
grunt test
grunt server
grunt

remove npm, modules, compass

npm cache clean

sudo npm remove -g yo
sudo npm remove -g generator-angular
...

sudo npm remove -g npm

sudo gem uninstall compass

#参考

http://decodize.com/css/installing-yeoman-front-end-development-stack-windows/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment