const portfinder = require('portfinder'); const port = await portfinder.getPortPromise(); 兩行代碼 埠搜索範圍 預設情況下,portfinder將開始搜索8000並掃描,直到達到最大埠號(65535) 源碼 ...
const portfinder = require('portfinder'); const port = await portfinder.getPortPromise(); 兩行代碼
埠搜索範圍
預設情況下,portfinder
將開始搜索8000
並掃描,直到達到最大埠號(65535
)
源碼的路徑是在node_modules/@vue/cli-service/lib/commands/serve.js