node.js - Nothing happen with bower install -
i'm trying setup angular app yeoman, following steps: http://yeoman.io/ works fine until do
grunt test
i got
chrome 24.0.1312 (linux) error uncaught referenceerror: angular not defined @ /var/www/moviz-test/app/scripts/app.js:3 chrome 24.0.1312 (linux) error uncaught referenceerror: angular not defined @ /var/www/moviz-test/app/scripts/controllers/main.js:3
it's because bower install
nothing, don't have folder app/bower_components
.bowerrc
{ "directory": "app/bower_components" }
bower.json
{ "name": "myapp", "version": "0.0.0", "dependencies": { "angular": "~1.0.7", "json3": "~3.2.4", "jquery": "~1.9.1", "bootstrap-sass": "~2.3.1", "es5-shim": "~2.0.8", "angular-resource": "~1.0.7", "angular-cookies": "~1.0.7", "angular-sanitize": "~1.0.7" }, "devdependencies": { "angular-mocks": "~1.0.7", "angular-scenario": "~1.0.7" } }
i've uninstall , reinstall bower , nothing change
bower -v 1.2.3 node -v v0.10.17
this happened me well. reason was following old tutorial said bower's package file components.json instead of bower.json. bower looking later , couldn't find file nothing (it should show warning or error). when renamed file bower.json worked.
Comments
Post a Comment