簡體   English   中英

Laravel-9:Vite 清單未在:\public\/build/manifest.json

[英]Laravel-9: Vite manifest not found at: \public\/build/manifest.json

您好,我剛剛安裝了 laravel 微風並嘗試運行它,但它顯示了這個錯誤:

Vite manifest not found at: ...\public\/build/manifest.json

通過搜索這個錯誤,我嘗試了不同的答案,但都是徒勞的,比如:

npm run build, npm run serve

它給出了這個錯誤

    Missing script: "build"
    npm ERR!
    npm ERR! To see a list of scripts, run:
    npm ERR!   npm run

    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\Users\umar\AppData\Local\npm-cache\_logs\2022-07-17T08_18_43_641Z-debug.log

我遇到了同樣的問題。 對我來說,這是一個 npm 版本問題。 更新了它,Ubuntu並再次重復了整個過程,它工作了。

嘗試將您的 nodejs 更新到最新版本(18.6)。

在 laravel 的當前版本(如 9.19 或更高版本)中,我們必須啟動“npm run dev”並在新終端運行服務命令“php arisan serve”,它會正常工作

Vite manifest not found at: C:\xampp\htdocs\eBook\public\build/manifest.json if you found this kind of error insted of php artisan serve use npm run dev the try into ur browser as other time

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM