vite+vue构建的网站项目localhost:5173打不开 - CSDN博客 文章浏览阅读6k次。 重新出现这样的界面说明已经成功启动项目,再次在浏览器中刷新并输入上述url即可。 解决方法:重新在工作目录下打开cmd,输入npm run dev重新启动项目。 原因:关掉了cmd命令提示符,那个端口就没有被配置上,打开就是这样的。 _localhost:5173
开发服务器选项 | Vite 官方中文文档 第一种情况是 localhost 被使用了。 Node js 在 v17 以下版本中默认会对 DNS 解析地址的结果进行重新排序。 当访问 localhost 时,浏览器使用 DNS 来解析地址,这个地址可能与 Vite 正在监听的地址不同。 当地址不一致时,Vite 会打印出来。
开始 | Vite 官方中文文档 之后就可以在 http: localhost:5173 上访问 index html。 index html 与项目根目录 你可能已经注意到,在一个 Vite 项目中, index html 在项目最外层而不是在 public 文件夹内。 这是有意而为之的:在开发期间 Vite 是一个服务器,而 index html 是该 Vite 项目的入口文件。
Vite : Application works on localhost:5173 but not on 127. 0. 0. 1:5173 My Vite js application works normally on http: localhost:5173 but when I am using http: 127 0 0 1:5173 the app does not work I am using an Intel Mac (MacOs: Ventura 13 0 1) When I tried creating a normal react app, then http: localhost:3000 and 127 0 0 1:3000 both are working the same