寶塔面板更新composer


寶塔面板安裝成功,執行

composer create-project topthink/think tp 

 命令時,提示下面錯誤。

Warning: This development build of composer is over 60 days old. It is recommended to update it by running "/usr/bin/composer self-update" to get the latest version.
Creating a "topthink/think" project at "./pm"

composer update

 命令同樣提示錯誤

Warning: This development build of composer is over 60 days old. It is recommended to update it by running "/usr/bin/composer self-update" to get the latest version.
Composer could not find a composer.json file in /www/wwwroot
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section

執行 

 /usr/bin/composer self-update

升級成功。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM