davy_yg's avatar
Level 27

Installing composer

Hello,

I am getting this error message when trying to install composer in the server:

[advancew@sjc02 public_html]$ composer install Installing dependencies from lock file (including require-dev) Verifying lock file contents can be installed on current platform. Package operations: 113 installs, 0 updates, 0 removals Failed to download psr/simple-cache from dist: /home/advancew/public_html/vendor/psr/simple-cache does not exist and could not be created. Now trying to download from source

Any idea where I can get the token? I am using gitlab.

Which token do I need to use?

ref: https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html

I only have this notes in my documentation - git remote add origin https://davy_yg:******@gitlab.com/davy_yg/xyz.git

Is the one that I sensored mightbe the personal access token that I could enter in the token (hidden) ? Since I tried but I failed.

0 likes
4 replies
davy_yg's avatar
Level 27

I don't feel like I am installing simple-cache from packagist.org . I only pull all my files from gitlab to the server and then install composer for the laravel framework.

davy_yg's avatar
Level 27
composer.json

		{
				"name": "laravel/laravel",
				"type": "project",
				"description": "The Laravel Framework.",
				"keywords": [
    				"framework",
    				"laravel"
		],
				"license": "MIT",
		"require": {
    				"php": "^7.2",
    				"arcanedev/no-captcha": "^12.2",
    				"biscolab/laravel-recaptcha": "^5.4",
    				"fideloper/proxy": "^4.0",
    				"guzzlehttp/guzzle": "7.0.1",
    				"laravel/framework": "^8.0",
    				"laravel/legacy-factories": "^1.1",
    				"laravel/tinker": "^2.0",
    				"laravel/ui": "3.0",
    				"myclabs/php-enum": "^1.8"
		},
		"require-dev": {
    				"facade/ignition": "^2.3.6",
    				"fzaninotto/faker": "^1.4",
    				"mockery/mockery": "^1.0",
    				"nunomaduro/collision": "^5.0",
    				"phpunit/phpunit": "^9.0"
				},
		"config": {
    				"optimize-autoloader": true,
    				"preferred-install": "dist",
   				 "sort-packages": true
		},
		"extra": {
    				"laravel": {
        				"dont-discover": []
    		}
		},
		"autoload": {
    				"psr-4": {
        				"App\": "app/",
        				"Database\Factories\": "database/factories/",
        				"Database\Seeders\": "database/seeders/"
    		}
		},
		"autoload-dev": {
    				"psr-4": {
        				"Tests\": "tests/"
    		}
		},
		"minimum-stability": "dev",
				"prefer-stable": true,
		"scripts": {
    				"post-autoload-dump": [
        				"Illuminate\Foundation\ComposerScripts::postAutoloadDump",
        				"@php artisan package:discover --ansi"
    				],
    				"post-root-package-install": [
        					"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
    ],
    "post-create-project-cmd": [
        "@php artisan key:generate --ansi"
    ]
}

}

Please or to participate in this conversation.