angular setup
$ npm install -g bower
http://bower.io/#install-bower
$ npm cache clean
$ sudo npm install -g bower
download & install node over again
https://github.com/joyent/node/wiki/installing-node.js-via-package-manager#osx
https://github.com/npm/npm/issues/5470
and update npm
https://docs.npmjs.com/getting-started/installing-node
$ sudo npm install npm -g
$ npm -v
2.4.1
$ node -v
v0.10.36
now it’s working.
$ npm install -g bower
and, you don’t need bower in package.json
dependencies.
http://bower.io/docs/creating-packages/
$ bower install angular angular-resource angular-route angular-animate sass-bootstrap lodash jquery modernizr font-awesome --save
$ bower install angular-mocks --save-dev
http://karma-runner.github.io/0.12/intro/installation.html
# Install Karma:
$ npm install karma --save-dev
$ sudo npm install karma --save-dev
error:
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
“Open up Xcode, and accept the new user agreement. This was happening because a new version of Xcode was downloaded and the new agreement was not accepted.”
$ sudo xcodebuild -license
$ sudo npm install karma --save-dev
# Install plugins that your project needs:
$ npm install karma-jasmine karma-chrome-launcher --save-dev
(why all sudo? anyway)
$ npm install -g karma-cli
jasmine & phantomjs
http://kroltech.com/2013/11/javascript-tdd-with-jasmine-and-karma
npm install -g phantomjs
npm install karma-jasmine --save-dev
npm install karma-phantomjs-launcher --save-dev
karma init karma.conf.js
karma config file:
frameworks: ['jasmine'],
browsers: ['PhantomJS'],
autoWatch: false,
singleRun: true,
# ...etc.