我在终端对话框的webstorm IDE中有这段代码:
bower install angular-ui-router
当我现在在app / bower_components文件夹中查看时,我可以看到带有angular-ui-router软件包的新创建的文件夹。
但我所期望的还是bower.json文件中的一个条目:
{
"name": "app",
"version": "0.0.0",
"dependencies": {
"angular": "1.2.6",
"json3": "~3.2.6",
"es5-shim": "~2.1.0",
"jquery": "~1.10.2",
"bootstrap": "~3.0.3",
"angular-resource": "1.2.6",
"angular-sanitize": "1.2.6",
"angular-route": "1.2.6",
"angular-bootstrap": "~0.10.0"
},
"devDependencies": {
"angular-mocks": "1.2.6",
"angular-scenario": "1.2.6"
}
}
我没有在任何地方看到angular-ui-router!
为什么?
答案 0 :(得分:1)
您需要使用--save
标志在bower.json中获取它:
bower install --save angular-ui-router