PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, January 6, 2022

[FIXED] composer keeps installing an old version of laravel

 January 06, 2022     composer-php, laravel     No comments   

Issue

Running into an issue with composer where I am trying to run a standard install of laravel:

composer create-project --prefer-dist laravel/laravel blog

but it keeps trying to install:

Installing laravel/laravel (v5.5.28)

I have tried the following:

  • composer clear-cache
  • composer self-update
  • rm -rf vendor , clear-cache , composer install

nothing seems to be working... any ideas why composer is stuck in this old state?


Solution

You can try that...

composer create-project --prefer-dist laravel/laravel=5.3.* blog

Then

composer update

Also Try running composer global update to update the Laravel installer in Composer.

If this both options also not working then check PHP Version.

You'll have to install a newer php version.



Answered By - Madhuri Patel
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home
View mobile version

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing