作者:婷婷爱BB | 来源:互联网 | 2023-10-12 15:11
1.使用升级命令update的问题composerupdate提示下面的错误:1、Warning:Thisdevelopmentbuildofcomposer
1.使用升级命令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
结果还是出错了,正确的命令是下面这个:
狗带...
提示版本太低不支持
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'));"