Akhil
Akhil

Reputation: 11

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.enter image description here

Upvotes: 1

Views: 3687

Answers (4)

Chinthaka Dilan F
Chinthaka Dilan F

Reputation: 615

Hope it's because of Vite

try with

npm run build

Upvotes: 5

Yasin Rahnaward
Yasin Rahnaward

Reputation: 36

first solution : Laravel 9.19 replace the mixer with Vite, for Vite Configuration visit the official Doc of Laravel for Vite Bundling Assets (Vite)

second solution: install Laravel version 9.1.0 or lower

composer create-project Laravel/Laravel App_name 9.1.0

Upvotes: 1

PunyFlash
PunyFlash

Reputation: 1076

There is nothing wrong with your build. Laravel now uses Vite as front-end bundler. It is much more powerful than mix, so check out the documentation and get used to it. Or roll back to mix.

Upvotes: 1

Aykhan Gasimzade
Aykhan Gasimzade

Reputation: 29

Uninstall and reinstall the npm package.

Delete the node_modules folder. and then run the following command

npm install

Later

npm install -g require

Upvotes: -2

Related Questions