我已经构建了 React 应用程序:
npm run build
并安装了全局服务包:
npm install -g serve
并运行它:
serve -s build
我该如何阻止它?
我试过serve help
了,但没有显示任何停止选项
选项:
-a, --auth Serve behind basic auth -c, --cache Time in milliseconds for caching files in the browser -n, --clipless Don't copy address to clipboard (disabled by default) -C, --cors Setup * CORS headers to allow requests from any origin (disabled by default) -h, --help Output usage information -i, --ignore Files and directories to ignore -o, --open Open local address in browser (disabled by default) -p, --port <n> Port to listen on (defaults to 5000) -S, --silent Don't log anything to the console -s, --single Serve single page applications (sets `-c` to 1 day) -u, --unzipped Disable GZIP compression -v, --version Output the version number