Could not open input file: composer.phar

前端 未结 15 791
感情败类
感情败类 2020-12-02 09:38

I am trying to install zendframework using composer tool in wamp server.

The following steps are done towards installation

  1. I downlo

15条回答
  •  北荒
    北荒 (楼主)
    2020-12-02 09:58

    I was trying to install YII 2.0

    php composer.phar create-project yiisoft/yii2-app-advanced advanced 2.0.0-alpha
    

    I got the same error:

    Could not open input file: composer.phar

    Then i gave the full path of .phar like this:

    php C:\ProgramData\Composer\bin\composer.phar create-project yiisoft/yii2-app-advanced advanced 2.0.0-alpha
    

    and it worked.

提交回复
热议问题