这是this question的后续行动。我正在使用bower 0.7.1,但仍然无法将组件安装到其他位置,而不是在components
文件夹中。选择凉亭安装目录
我尝试添加以下行到我的component.json
,按this PR:
"componentsDirectory": "public/components"
但它仍然会在./components
安装。
我试图创建一个.bowerrc
文件旁边component.json
:
{
"directory" : "public/components"
}
但运行bower install
,当我得到这个错误:
Error: Unable to parse local .bowerrc file: Unexpected token }
任何想法?
此外,您还可以将.bowerrc添加到您的项目,不只是你的个人文件夹:) – 2013-09-18 19:47:25
参见[自定义安装目录](http://bower.io/#custom-install-directory)文档 – GabLeRoux 2014-04-04 14:12:11
@GabLeRoux本文档不存在 – 2014-07-17 08:50:53