Composer Update Authentication on Packaging

I have a problem updating the composer for my project made in laravel 5. Every time I want to update the composer using other packages (from Packagist), I get an authentication window (not one-point), and then even if I whether I enter my github / packagist account or not, I end up like this:

Loading composer repositories with package information Updating dependencies (including require-dev) Authentication required (packagist.org): Username: Password: [Composer\Downloader\TransportException] Invalid credentials for 'http://packagist.org/p/doctrine/inflector$caf0d38e 3001eb2cbabe4192f701affcc10254307a3c01fa6b41a5579b2b648e.json', aborting. 

I have tried so far to install the composer after deleting the provider folder and locking the composer, but auth appears again. I did another laravel project, but I start with a lot of vendor folders (like infrineor doctrine) and they need auth. I also tried the github marker, by json composer.

Does anyone know what the problem is? Thank you in advance.

 D:\Code\pricer>composer diagnose Checking composer.json: OK Checking platform settings: FAIL The xdebug extension is loaded, this can slow down Composer a little. Disabling it when using Composer is recommended. Checking git settings: OK Checking http connectivity: OK Checking github.com rate limit: OK Checking disk free space: OK Checking composer version: OK 

I have no problems with speed limit for auth and platform parameters, due to xdebug.

And when I uninstall this package and install composer again

  Problem 1 - laravel/framework v5.0.14 requires doctrine/inflector ~1.0 -> no matching package found. - laravel/framework v5.0.14 requires doctrine/inflector ~1.0 -> no matching package found. 

Composer.json:

 { "name": "laravel/laravel", "description": "The Laravel Framework.", "keywords": ["framework", "laravel"], "license": "MIT", "type": "project", "require": { "laravel/framework": "5.0.*", "illuminate/html": "5.0.*@dev", "doctrine/dbal": "2.6.*@dev" }, "require-dev": { "phpunit/phpunit": "~4.0", "phpspec/phpspec": "~2.1" }, "autoload": { "classmap": [ "database" ], "psr-4": { "App\\": "app/" } }, "autoload-dev": { "classmap": [ "tests/TestCase.php" ] }, "scripts": { "post-install-cmd": [ "php artisan clear-compiled", "php artisan optimize" ], "post-update-cmd": [ "php artisan clear-compiled", "php artisan optimize" ], "post-create-project-cmd": [ "php -r \"copy('.env.example', '.env');\"", "php artisan key:generate" ] }, "config": { "preferred-install": "dist" } } 
+5
source share
1 answer

This is a port issue. It cannot connect to a specific port due to port blocking on your system by your administrator. It is for this reason that he requests this authentication.

Try connecting to your home or mobile network and updating the composer. It should go smoothly without asking for credentials.

Mark this as an answer if this worked for you.

0
source

Source: https://habr.com/ru/post/1215034/


All Articles