npm install -g pm2 npm install -g pm2-web //linux有效
vscode配置
{
"command": "npm start run",
"name": "Run npm run",
"request": "launch",
"type": "node-terminal"
},
package.json配置
"run":"pm2 start app.js --watch"