安装枝条与作曲家给出错误

时间:2016-06-08 07:54:30

标签: php centos twig

我正试图在CENTOS 6.7上安装使用作曲家的树枝来获取此错误,我做错了什么?:

[root@mankomal /]# composer require twig/twig
Running composer as root/super user is highly discouraged as packages, plugins and scripts cannot always be trusted

Using version ^1.24 for twig/twig
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)

Installation failed, deleting ./composer.json.


  [RuntimeException]   //vendor does not exist and could not be created.


  require [--dev] [--prefer-source] [--prefer-dist] [--no-progress]
  [--no-update] [--update-no-dev] [--update-with-dependencies]
  [--ignore-platform-reqs] [--sort-packages] [-o|--optimize-autoloader]
  [-a|--classmap-authoritative] [--] [<packages>]...

1 个答案:

答案 0 :(得分:0)

您的供应商目录不正确。

建议:

  • 再次检查您的COMPOSER_VENDOR_DIR环境变量。尝试取消设置。
  • 再次检查vendor-dir中的composer.json

请参阅:How to specify Composer install path?