简体   繁体   English

为目标bower.json文件运行bower安装

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM