[英]run bower install for target bower.json file
Assume that my working directory is c:\\foo\\
during the script execution. 假设在脚本执行过程中,我的工作目录为
c:\\foo\\
。 I would like run bower from there for c:\\foo\\bar\\bower.json
file. 我想从那里为
c:\\foo\\bar\\bower.json
文件运行bower。 This is available on npm by running npm install --prefix c:\\foo\\bar
. 通过运行
npm install --prefix c:\\foo\\bar
可以在npm上npm install --prefix c:\\foo\\bar
。
Is there any equivalent command in bower? 凉亭中是否有任何等效的命令?
Add a .bowerrc
file to c:\\foo\\
with the following contents: 将
.bowerrc
文件添加到c:\\foo\\
,内容如下:
{
"cwd": "bar
}
this will set the working directory for Bower to c:\\foo\\bar\\
. 这会将Bower的工作目录设置为
c:\\foo\\bar\\
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.