1. 程式人生 > >composer install 時遇到 ComposerDownloaderTransportException ...

composer install 時遇到 ComposerDownloaderTransportException ...

.com tex abort red tor 有一個 exce 遇到 date

安裝錯誤

[Composer\Downloader\TransportException]
Invalid credentials for ‘https://packagist.phpcomposer.com/p/provider-2016%24ae19026fd0d5a3d5733e5a46202305c96ff2ae
1ccd7988bb88c5fa2a7e490f7d.json‘, aborting.

原因: 後來發現可能是composer文件中已經有一個 包來源的問題,, 也可能是沒有更新composer composer self-update

參考文中說這個檢測: composer diagnose 才想起要更新 composer self-update .

"repositories": [
{
"type": "composer",
"url": "https://asset-packagist.org"
}
]

參考:
https://segmentfault.com/q/1010000006723443

composer install 時遇到 Composer\Downloader\TransportException ...