Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

moosacz's avatar

Laravel new project not working - Windows

Hi, environment: Windows 10, XAMPP 7.4.9, Composer, Laravel 7. when I try run command "laravel new blog" it show me error: 'rm' is not recognized as an internal or external command, operable program or batch file. Does it mean that command "laravel new" is not possible use on Windows (command RM is not available under Windows) and I have to use composer create-project ? Thank you for any advice.

0 likes
9 replies
KuraiBlack's avatar

I had the same issue, to fix this and use the laravel command instead using composer, just go to:

AppData\Roaming\Composer\vendor\laravel\installer\src\NewCommand.php

You'll need to replace the NewCommand.php file with this one:

https://github.com/laravel/installer/blob/master/src/NewCommand.php

That's the way I fixed it. Because to be honest is just too much of a hassle to write the whole command with composer.

PS: I am using Laravel Installer 4.0 just in case

3 likes
Mijail's avatar

It worked, but how did you come with the solution or where did you find it? Thank U Kurai

moosacz's avatar

THANK YOU to all for help. Installer v4.0.1 solved the problem.

Please or to participate in this conversation.