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

akins's avatar

Spark:update fails using windows cmd

When I try to run 'php artisan spark:update' from my terminal in windows/PhpStorm I get an error of: [ErrorException] Undefined index: Home

I have installed spark on Homestead/Virtualbox/Windows 10 Pro. All works well after fixing some of the Windows installation challenges by using composer to install.

I believe it is an error related to the download/installation path but I'm not sure how to correct without disturbing spark. I know I can update on Homestead but I would like to get at the root of the problem on windows.

Thanks in advance for any help!!

0 likes
5 replies
godbrain's avatar

getting the same error... the error isn't very helpful

VancouverE's avatar

Having the same issue, did either of you find a solution. It appears it is related to the use of $_SERVER['home']. I am running homestead on Windows 10. Looks like the global variable isn't accessible.

undrwd's avatar

Not a solution, just some quick feedback artisan to artisan.

I was a windows guy learning rails/laravel and would always run in to obscure errors issues and would spend hours chasing them down trying to get things working. One night I grabbed my wife's macbook and ran through a tutorial in half an hour that I'd been grinding away at for hours with windows. I have both windows and OSX but almost all development work is done on OSX.

Switching to OSX is one of the best decisions I've every made. Way more productive, learn more and keep leveling up as a developer.

There is a reason most developers and most tutorials are on OSX.

So if possible, I know macs are a little more than basic windows laptops , you should think about making the switch to mac.

The base model 13" macbook air is perfect for full stack development, especially using Valet, OSX only btw ; ) and you can usually get them on sale at best buy for around $800. You can add an external monitor for $150 or so on amazon.

Good luck getting things resolved and back up and running. If you have access to a mac test out a tutorial or two and see what you think.

jlrdw's avatar

Have you read this on the documentation page

Note: The Spark installer is only recommended for those on Mac or Linux systems. If you are using Windows, please install via Composer. Before using the Spark installer, make sure you have installed the Laravel installer.

https://spark.laravel.com/docs/1.0/installation#installation-on-windows I am sure Taylor would have tested this stuff. Do you have admin rights in that terminal? Edit: I recently had trouble updating another package, un-related to this, I had to add the path to environment. That might help.

1 like
godbrain's avatar

Just so you know, the install instructions changed a few times since Spark was released... I for one was not running the Spark installer. And for the MAC guy above. You work for Apple? Hilarious.

Please or to participate in this conversation.