Code Monkey home page Code Monkey logo

Comments (8)

GrahamCampbell avatar GrahamCampbell commented on June 22, 2024 1

The recommended way to install Laravel is composer create-project, rather than this installer, as of Composer 2.0.0's release (I think??? // cc @driesvints).

from installer.

driesvints avatar driesvints commented on June 22, 2024

The installer only works with the latest Laravel version and not Laravel 6.

from installer.

C0kkie avatar C0kkie commented on June 22, 2024

Who is talking about laravel 6?

from installer.

driesvints avatar driesvints commented on June 22, 2024

You are:

  • illuminate/support v6.18.41

from installer.

C0kkie avatar C0kkie commented on June 22, 2024

C:\Users\Florian>composer global require laravel/installer
Changed current directory to C:/Users/Florian/AppData/Roaming/Composer
Using version ^4.1 for laravel/installer
./composer.json has been updated
Running composer update laravel/installer
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- illuminate/support v6.18.41 requires php ^7.2 -> your php version (8.0.0) does not satisfy that requirement.
- laravel/envoy v1.6.5 requires illuminate/support ~4.1 || ~5.0 || ^6.0 -> satisfiable by illuminate/support[v6.18.41].
- laravel/envoy is locked to version v1.6.5 and an update of this package was not requested.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

from installer.

driesvints avatar driesvints commented on June 22, 2024

You're trying to require the laravel installer globally without updating the underlying dependencies that other global packages have already set.

Try: composer global require laravel/installer -W

from installer.

C0kkie avatar C0kkie commented on June 22, 2024

composer global update and then upgrade the installer worked. You command didnt

from installer.

mdmuzaffer avatar mdmuzaffer commented on June 22, 2024

Update your composer.json file with my below code and then add your added package under "require": { } object, It will work
don't forget run command update composer

{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"php": "^7.3|^8.0",
"fideloper/proxy": "^4.4",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.0.1",
"laravel/framework": "^8.40",
"laravel/socialite": "^5.3",
"laravel/tinker": "^2.5",
"dompdf/dompdf": "^1.0",
"intervention/image": "^2.5",
"maatwebsite/excel": "^3.1",
"softon/indipay": "^1.2"
},
"require-dev": {
"facade/ignition": "^2.5",
"fakerphp/faker": "^1.9.1",
"laravel/sail": "^1.0.1",
"laravel/ui": "^3.3",
"mockery/mockery": "^1.4.2",
"nunomaduro/collision": "^5.0",
"phpunit/phpunit": "^9.3.3"
},
"autoload": {
"psr-4": {
"App\": "app/"
},
"classmap": [
"database/seeds",
"database/factories"
],
"files": [
"app/helper/helpers.php"
]
},
"autoload-dev": {
"psr-4": {
"Tests\": "tests/"
}
},

"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"
]
},

"extra": {
"laravel": {
"dont-discover": []
}
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"minimum-stability": "dev",
"prefer-stable": true
}

from installer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.