composer工具实现更新到最新版本_dzyweer的博客-CSDN博客 ---- 修正

大家的composer一般很久不用  随着时间的推移 可能不是最新了,为了获取最好的使用环境 我们需要保持她最新

大家只要执行下面的命令就可以了

composer self-update  

他说我的是1.6.4版本了。执行--rollback就能回到更新之前的版本。

[root@localhost deepmind]# composer self update
PHP Warning:  PHP Startup: Unable to load dynamic library 'curl' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/curl (/usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/curl: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/curl.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/curl.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'fileinfo' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'curl' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/curl (/usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/curl: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/curl.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/curl.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'fileinfo' already loaded in Unknown on line 0
Updating to version update (stable channel).

                                                                                                                         
  [Composer\Downloader\TransportException]                                                                               
  The "https://getcomposer.org/download/update/composer.phar.sig" file could not be downloaded (HTTP/1.1 404 Not Found)  
                                                                                                                         

self-update [-r|--rollback] [--clean-backups] [--no-progress] [--update-keys] [--stable] [--preview] [--snapshot] [--set-channel-only] [--] [<version>]
[root@localhost deepmind]# composer self-update
PHP Warning:  PHP Startup: Unable to load dynamic library 'curl' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/curl (/usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/curl: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/curl.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/curl.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'fileinfo' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'curl' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/curl (/usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/curl: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/curl.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/curl.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'fileinfo' already loaded in Unknown on line 0
Updating to version 1.9.1 (stable channel).
   Downloading (100%)         
Use composer self-update --rollback to return to version 1.6.3

Original url: Access
Created at: 2020-01-09 17:58:12
Category: default
Tags: none

请先后发表评论
  • 最新评论
  • 总共0条评论