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

akhilmurali's avatar

Why npm run dev stuck on APP_URL?

Today when i tried to run npm run dev in Laravel 9 , it stucks at APP_URL line. Earlier there were no issues.

0 likes
11 replies
Sinnbeck's avatar

What do you mean? Are you using vite or mix?

1 like
akhilmurali's avatar

@Sinnbeck I'm trying to create Auth. After breeze installation ,when i try to run command ' npm run dev' it stucks at line -

APP_URL: http//demobreeze . test

MamoonaShuja's avatar

@Sinnbeck but register and login page for laravel still giving same error of not having app.js file if it workd why it's same?

MamoonaShuja's avatar

@Sinnbeck i solved it. it's new vite it's wasting my days there are new methods for this that's why taking too long

Snapey's avatar

Please check the docs https://laravel.com/docs/9.x/vite#running-vite

What you see is the last line that the dev server outputs. Its then listening for changes to your css files.

Its a bit confusing because the server only serves the css and js asset files - you still need a web server running to host your site (eg php artisan serve, laravel valet etc)

1 like
Snapey's avatar

@akhilmurali if you want hot reloading.

otherwise you can run npm run build and load the assets as before.

You should though replace where you load the assets in your layout files and use the @vite helper

1 like
drjermy's avatar

Rather than npm run dev, I think you want npm run build

Please or to participate in this conversation.