Laravel Vite is having trouble running npm run dev
P粉564192131
P粉564192131 2023-11-05 21:52:31
0
1
746

I'm using Laravel 9. When I try to run npm install and then npm run dev, the error below shows up.

VITE v3.0.9  ready in 648 ms

  ➜  Local:   http://127.0.0.1:5173/
  ➜  Network: use --host to expose

  LARAVEL v9.26.0  plugin v0.5.4

  ➜  APP_URL: http://127.0.0.1:8000
C:Software ProjectWeb DevelopmentAdminPanelnode_modulesesbuildlibmain.js:1356
        return callback(new Error(error), null);
                        ^

Error: The service was stopped: write EPIPE
    at C:Software ProjectWeb DevelopmentAdminPanelnode_modulesesbuildlibmain.js:1356:25    
    at C:Software ProjectWeb DevelopmentAdminPanelnode_modulesesbuildlibmain.js:678:9      
    at afterClose (C:Software ProjectWeb DevelopmentAdminPanelnode_modulesesbuildlibmain.js:656:7)
    at C:Software ProjectWeb DevelopmentAdminPanelnode_modulesesbuildlibmain.js:2075:11    
    at onwriteError (node:internal/streams/writable:417:3)
    at processTicksAndRejections (node:internal/process/task_queues:85:21)


P粉564192131
P粉564192131

reply all(1)
P粉547362845

The problem occurs when the version is higher than 9.0

Download a new Laravel project

Enter the following command and your problem will be solved

composer create-project laravel/laravel example-app 9.0

The following commands will run successfully npm install and npm run dev

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template