Code Monkey home page Code Monkey logo

Comments (4)

driesvints avatar driesvints commented on July 21, 2024

If I do: /opt/homebrew/Cellar/php/8.1.1/bin/php /Users/driesvints/.composer/vendor/bin/laravel new test-lara9

It installs Laravel 9 for me. PHP 7.4 is installed as well. So I don't think there's an issue here and something specific to your local install is happening. Please try a support channel:

from installer.

codemonkey76 avatar codemonkey76 commented on July 21, 2024

If I do: /opt/homebrew/Cellar/php/8.1.1/bin/php /Users/driesvints/.composer/vendor/bin/laravel new test-lara9

It installs Laravel 9 for me. PHP 7.4 is installed as well. So I don't think there's an issue here and something specific to your local install is happening. Please try a support channel:

Did you have php 7.4 as your default?

i.e. if you do php -v do you get 7.4 or 8.1?

This issue seems to only occur if the default php on the system is 7.4

from installer.

kw-pr avatar kw-pr commented on July 21, 2024

With Linux/Ubuntu this did not worked for me:

php8.1 ~/.composer/vendor/bin/laravel new test-lara9

To make it work, I switched php version with this:

sudo update-alternatives --set php /usr/bin/php8.1

from installer.

ahmedmaazin avatar ahmedmaazin commented on July 21, 2024

If I do: /opt/homebrew/Cellar/php/8.1.1/bin/php /Users/driesvints/.composer/vendor/bin/laravel new test-lara9
It installs Laravel 9 for me. PHP 7.4 is installed as well. So I don't think there's an issue here and something specific to your local install is happening. Please try a support channel:

Did you have php 7.4 as your default?

i.e. if you do php -v do you get 7.4 or 8.1?

This issue seems to only occur if the default php on the system is 7.4

I can confirm this is in-fact true! Happened to me as well as I had [email protected] as my default php. Had to change to [email protected] to get the latest Laravel version 9 installed via laravel new app.

If I am not mistaken, I guess this is not an issue though as Laravel 9 requires PHP >= 8.0 at least.

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.