Laravel Vite在運行npm run dev時遇到了困難
P粉564192131
P粉564192131 2023-11-05 21:52:31
0
1
783

我正在使用Laravel 9。當我嘗試執行npm install,然後執行npm run dev時,下面的錯誤顯示出來。

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

全部回覆(1)
P粉547362845

問題出現在版本高於9.0的情況下

下載一個新的Laravel專案

輸入以下指令,你的問題將會解決

composer create-project laravel/laravel example-app 9.0

以下指令將成功執行npm installnpm run dev

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板