I have some package ex : vendor/obsolete-pwd
which is protected with password (http-basic) and no longer have the new password (I can't update the pwd).
I want solution for the time to move this packages to another repo.
Remove:
I tried composer remove vendor/package
, it automaticaly check the obsolete package.
Error :
[Composer\Downloader\TransportException]
The "http://***/packages.json" file could not be downloaded: failed to open stream: Connection timed out
I also tried to set the exact version from "^1.1"
to "1.1.0"
but noway.
My workaround:
I tried so : composer remove vendor/package --no-update
this works, it removes it from composer.json
but to update composer.lock
I tried composer update
but doesn't work, it check again the obsolete package.
solution : I removed it manually from composer.lock
.
Install:
Now i'm stuck in installing the new package
I tried composer require vendor/package2 0.5.0
, composer require vendor/package2 0.5.0 --no-update
but it doesn't work.
Has anyone had this problem or knows how to fix it.
Info, I tried related post but doesn't work