我正在尝试在运行 apache2 和 php5 的 Ubuntu 14.04 上安装 Learning Locker,我已经安装了列出的所有依赖项 here .当我运行composer(实际上是它的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
关于php - 找不到 .bowerrc 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30309215/