03 Nov npm run dev,但 --port 传不进去?你可能漏了两个杠 为什么 npm run dev --port 没用?参数被 npm“吃掉”了?本文教你一个简单的办法:使用 -- (双破折号) 强制 npm 将 --port 等参数正确传递给 Vite 或其他脚本。