我已经尝试过以下解决方案,但它不起作用。
sudo forever start -c "npm start" ./
而package.json文件是这样的,看启动命令:(这不是完整的package.json)
"name": "angular2-quickstart",
"version": "1.0.0",
"scripts": {
"lite": "lite-server",
"gulp": "gulp",
"start": "concurrent \"npm run gulp\" \"npm run lite\" ",
"postinstall": "typings install",
"tsc": "tsc",
"tsc:w": "tsc -w",
"typings": "typings"
},