Loading

关于composer遇到的问题

1.使用升级命令update的问题

composer update

提示下面的错误:

1、Warning: This development build of composer is over 60 days old. It is recommended to update it by running "C:\ProgramData\ComposerSetup\bin\composer.phar self-update" to get the latest version.

我以为要运行 

C:\ProgramData\ComposerSetup\bin\composer.phar self-update

结果还是出错了,正确的命令是下面这个:

composer selfupdate

狗带...

提示版本太低不支持

The "yiisoft/yii2-composer" plugin was skipped because it requires a Plugin API
version ("1.0.0") that does not match your Composer installation ("1.1.0"). You
may need to run composer update with the "--no-plugins" option.

使用下面命令更新

composer selfupdate --no-plugins

 

 

2.composer下载项目时本地要先创建composer.phar文件

在项目路径下用cmd执行以下命令

 php -r " eval('?>' .file_get_contents('https://getcomposer.org/installer'));"

  

 

posted @ 2017-02-27 18:15  江小园  阅读(4390)  评论(0编辑  收藏  举报