Last active
August 29, 2015 14:00
-
-
Save glombard/11012610 to your computer and use it in GitHub Desktop.
Install Grunt/Bower/Yo tools for AngularJS on OS X
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install nodejs under /usr/local/Cellar/node/0.10.26/ | |
brew update | |
brew install node | |
# install global node modules under /usr/local/lib/node_modules/ | |
npm install -g grunt-cli | |
npm install -g yo | |
npm install -g bower | |
npm install -g generator-angular | |
npm install -g protractor | |
npm install -g karma | |
npm install -g typescript | |
# install sass/compass gems under /Library/Ruby/Gems/2.0.0/gems | |
sudo gem update --system | |
sudo gem install compass | |
# Create AngularJS app: | |
npm cache clean | |
yo angular | |
npm install karma-jasmine --save-dev | |
npm install karma-chrome-launcher --save-dev | |
# now run unit tests in Chrome | |
grunt test |
Locations:
- Brew installs node bin to: /usr/local/Cellar/node/0.10.28/bin
- Node packages are installed to: /usr/local/lib/node_modules
Symlinks:
- /usr/local/bin/node -> /usr/local/Cellar/node/0.10.28/bin/node
- /usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
- /usr/local/bin/bower -> /usr/local/lib/node_modules/bower/bin/bower
- etc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
and also: