我使用Nest.js
我的package.json启动指令是"start": "ts-node -r tsconfig-paths/register src/main.ts "
在我pm2 start npm --name "Your APP Name" -- start
之后
我收到了这些错误
2|Your APP | C:\PROGRAM FILES\NODEJS\NPM.CMD:1
2|Your APP | (function (exports, require, module, __filename, __dirname) { :: Created by npm, please don't edit manually.
2|Your APP | ^
2|Your APP |
2|Your APP | SyntaxError: Unexpected token :
2|Your APP | at createScript (vm.js:80:10)
2|Your APP | at Object.runInThisContext (vm.js:139:10)
2|Your APP | at Module._compile (module.js:616:28)
2|Your APP | at Object.Module._extensions..js (module.js:663:10)
2|Your APP | at Module.load (module.js:565:32)
2|Your APP | at tryModuleLoad (module.js:505:12)
2|Your APP | at Function.Module._load (module.js:497:3)
2|Your APP | at Object.<anonymous> (C:\Users\luk\AppData\Roaming\npm\node_modules\pm2\lib\ProcessContainerFork.js:83:21)
2|Your APP | at Module._compile (module.js:652:30)
2|Your APP | at Object.Module._extensions..js (module.js:663:10)
我的PM2版本是2.10.4
我的电脑系统是win10
我的节点版本是v8.11.1