我正在尝试使用 yeoman 设置 Angular 应用程序,按照以下步骤操作:http: //yeoman.io/ 一切正常,直到我这样做
grunt test
我有
Chrome 24.0.1312 (Linux) ERROR
Uncaught ReferenceError: angular is not defined
at /var/www/moviz-test/app/scripts/app.js:3
Chrome 24.0.1312 (Linux) ERROR
Uncaught ReferenceError: angular is not defined
at /var/www/moviz-test/app/scripts/controllers/main.js:3
这是因为bower install
什么都不做,我没有文件夹app/bower_components
.bowerrc
{
"directory": "app/bower_components"
}
鲍尔.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"
}
}
我已经卸载并重新安装了 bower,没有任何变化
bower -v 1.2.3
node -v v0.10.17