我在 Windows 上,当我使用 Angular 生成器搭建我的应用程序时 bower_components
在 app
目录中丢失了 - 而不是在根目录中
这是我的 app
新脚手架后的目录:
所以我必须手动将 bower 组件放在 app
目录中...
知道为什么会这样吗?
P.S 在 bower.json 我有:
"appPath": "app"
但该选项未得到遵守,当我运行 bower install
时,它不会将 bower_components
添加到 app
目录中。
最佳答案
让它工作 - 编辑 .bowerrc
{
"directory": "app/bower_components"
}
然后 bower 安装
。
现在所有依赖项都在app
目录中。
关于Yeoman Angular 生成器 - 应用程序文件夹中缺少 bower_components,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27979534/