0
我正在使用一個簡單的npm模塊http-server https://www.npmjs.com/package/http-server到服務器靜態網站。 這是我的包JSONhttp-server在使用Ctrl + C時不停止服務器
{
"name": "dashboard-ng-starfleet",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start":"./node_modules/http-server/bin/http-server -p=8080"
},
"repository": {
"type": "git",
"url": ""
},
"author": "",
"license": "ISC",
"homepage": "",
"devDependencies": {
"http-server": "^0.10.0"
}}
服務器啓動一次,但一旦我在終端用Ctrl + C停止並重新啓動服務器,它說地址已在使用。 理想情況下,它應該停止。
任何幫助?
在項目問題追蹤器https://github.com/indexzero/http-server/issues/393已經提到 – getjackx