找不到 .bowerrc 文件
Cannot find .bowerrc file
我正在尝试在我的 Ubuntu 14.04 上安装 Learning Locker,其中 运行 是 apache2 和 php5,我已经安装了列出的所有依赖项 here。然而当我 运行 作曲家(实际上是它的 composer.phar,我不知道为什么)它显示它正在下载,但 bower 一直显示 ECONNRESET 错误。所以我想我必须设置代理但找不到 .bowerrc 文件,我在主目录和根目录中搜索。难道我做错了什么。
提前致谢。
您应该手动创建此文件。
cd /your/working/dir
touch .bowerrc
.bowerrc
内容:
{
"proxy": "http://<host>:<port>",
"https-proxy": "http://<host>:<port>"
}
其他地点:
The config is obtained by merging multiple configurations by this
order of importance:
- CLI arguments via --config
- Environment variables
- Local .bowerrc located in the current working directory
- All .bowerrc files upwards the directory tree
- .bowerrc file located in user’s home folder (~)
- .bowerrc file located in the global folder (/)
更多:docs
我正在尝试在我的 Ubuntu 14.04 上安装 Learning Locker,其中 运行 是 apache2 和 php5,我已经安装了列出的所有依赖项 here。然而当我 运行 作曲家(实际上是它的 composer.phar,我不知道为什么)它显示它正在下载,但 bower 一直显示 ECONNRESET 错误。所以我想我必须设置代理但找不到 .bowerrc 文件,我在主目录和根目录中搜索。难道我做错了什么。 提前致谢。
您应该手动创建此文件。
cd /your/working/dir
touch .bowerrc
.bowerrc
内容:
{
"proxy": "http://<host>:<port>",
"https-proxy": "http://<host>:<port>"
}
其他地点:
The config is obtained by merging multiple configurations by this order of importance:
- CLI arguments via --config
- Environment variables
- Local .bowerrc located in the current working directory
- All .bowerrc files upwards the directory tree
- .bowerrc file located in user’s home folder (~)
- .bowerrc file located in the global folder (/)
更多:docs