可以使用Laravel/UI运行(NPM Run Dev)

发布于 2025-02-13 13:35:46 字数 999 浏览 0 评论 0原文

我已经使用(Laravel/UI)软件包创建了Laravel应用程序,并且使用了Bootstrap UI,所有功能都很好,但是当我在(npm install)之后运行(npm run dev)时,它会像这样卡住: ps e:\ server \ htdocs \ me-online> NPM Run Dev

> @ dev E:\server\htdocs\me-online
> vite

Port 3000 is in use, trying another one...

  vite v2.9.13 dev server running at:

  > Local: http://localhost:3001/
  > Network: use `--host` to expose

  ready in 357ms.


  Laravel v9.19.0 

  > APP_URL: http://localhost

我也尝试过:

PS E:\server\htdocs\me-online> npm run dev -host 3004

> @ dev E:\server\htdocs\me-online
> vite "3004"

Port 3000 is in use, trying another one...

  vite v2.9.13 dev server running at:

  > Local: http://localhost:3001/
  > Network: use `--host` to expose

  ready in 292ms.

(!) Could not auto-determine entry point from rollupOptions or html files and there are no explicit optimizeDeps.include patterns. Skipping dependency pre-bundling.

我已经在许多项目中没有任何问题完成了此操作吗?

I have created laravel application with the (laravel/Ui) package, and I have used bootstrap UI, everything working well, but when I rung (npm run dev) after (npm install), it is stuck like this:
PS E:\server\htdocs\me-online> npm run dev

> @ dev E:\server\htdocs\me-online
> vite

Port 3000 is in use, trying another one...

  vite v2.9.13 dev server running at:

  > Local: http://localhost:3001/
  > Network: use `--host` to expose

  ready in 357ms.


  Laravel v9.19.0 

  > APP_URL: http://localhost

I tried this also:

PS E:\server\htdocs\me-online> npm run dev -host 3004

> @ dev E:\server\htdocs\me-online
> vite "3004"

Port 3000 is in use, trying another one...

  vite v2.9.13 dev server running at:

  > Local: http://localhost:3001/
  > Network: use `--host` to expose

  ready in 292ms.

(!) Could not auto-determine entry point from rollupOptions or html files and there are no explicit optimizeDeps.include patterns. Skipping dependency pre-bundling.

I have done this with many projects without any problem before?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

勿忘初心 2025-02-20 13:35:46

Laravel UI目前被Vite打破。 Laravel团队正在研究:

https://github.com/laravel.com/laravel/laravel/ui/ui/pull/pull/228/228

Laravel UI is currently broken with Vite. Laravel team is working on it:

https://github.com/laravel/ui/pull/228

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文