我想使用該npm run dev --host命令在 LAN 上公開我的苗條應用程式,但它顯示:
> [email protected] dev
> svelte-kit dev
SvelteKit v1.0.0-next.295
local: http://localhost:3000
network: not exposed
Use --host to expose server to other devices on this network
uj5u.com熱心網友回復:
您必須--在實際標志之前添加:
npm run dev -- --host
它應該輸出:
> [email protected] dev
> svelte-kit dev "--host"
SvelteKit v1.0.0-next.316
local: http://localhost:3000
network: http://***.***.**.**:3000
Note that all files in the following directories will be accessible to anyone on your network: src/lib, src/routes, .svelte-kit, src, node_modules
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/461588.html
上一篇:錯誤:找不到模塊“C:\...\node_modules\isexe\index.js”。請驗證package.json是否有有效的“main”條目
