php - 找不到 .bowerrc 文件

标签 php ubuntu proxy bower

我正在尝试在运行 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:

  1. CLI arguments via --config
  2. Environment variables
  3. Local .bowerrc located in the current working directory
  4. All .bowerrc files upwards the directory tree
  5. .bowerrc file located in user’s home folder (~)
  6. .bowerrc file located in the global folder (/)


更多:docs

关于php - 找不到 .bowerrc 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30309215/

相关文章:

php - 如何在 HTML 中的 PHP 中同时注释掉 HTML 和 PHP?

ubuntu - beanstalkd:未知标志:-d

linux - 如何在 apache 服务器上为 iperf3 配置端口

python - 导入错误 : No module named cv2 in ubuntu 16. 04 Anaconda2

java - 如何让所有网络流量都通过代理?

git - 通过 Cntlm : why git clone hangs? 代理

php - phpMyAdmin 的 20,000 行限制的修复或迁移是什么?有什么真正不稳定的地方吗?

php - 我需要 mysql 结果集仅基于索引

php - 在 Mysql 数据库中插入动态选择框值并显示数据已提交消息

tomcat - Nginx 反向代理单个 tomcat 实例上的多个应用程序