设置安装在另一个项目文件夹中的作曲家,用于新的项目文件夹

时间:2017-06-12 14:36:04

标签: php symfony composer-php

我希望开始一个新的symfony项目,我想使用composer来获得额外的优势,但我已经在我的新项目文件夹中使用了已安装的编辑器。已安装的作曲家随附Acquia dev桌面。当我在我的新项目文件夹中运行'php composer.phar'时,我收到此错误“无法打开输入文件:composer.phar”

1 个答案:

答案 0 :(得分:0)

Double check where your composer.phar file is located.

If it has been installed into your old project's folder, simply copy it to the new folder.

If it has been installed globally (i.e: it is not in your old project's folder), then make sure you are using the right command, you might need to simply do composer install instead of php composer.phar