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

Thursday, January 20, 2022

[FIXED] CMD - composer and artisan commands stopped working

 January 20, 2022     cmd, composer-php, laravel, laravel-artisan     No comments   

Issue

After a break, I decided to work on one of my Laravel projects again. The "php artisan serve" command worked fine before, and so it did on other projects. But now it doesn't work on any project and I have no clue why. The composer commands don't work either. I tested ipconfig and this does work, so I guess it has something to do with commands from 3rd parties?

Things I tried:

  • Run CMD in administrator mode
  • Check if the environment paths were still correct (and they seem so)

I got a big Windows update a few days ago and I think it has something to do with it, but I can't find anyone with similar issues.

The command below just gives me a blank line, and then a new line with the path and option to type a command.

D:\xampp\htdocs\webshop>php artisan serve

Screenshot:

The CMD interface


Solution

Please reinstall composer from this link and try it



Answered By - AddWeb Solution Pvt Ltd
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

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