node-pm2でnodeを起動したら以下のエラーを吐く。
[start_dev_rate_distribution_server.sh err (l621)] SyntaxError: Unexpected token ILLEGAL [start_dev_rate_distribution_server.sh err (l622)] at Module._compile (module.js:439:25) [start_dev_rate_distribution_server.sh err (l623)] at Object.Module._extensions..js (module.js:474:10) [start_dev_rate_distribution_server.sh err (l624)] at Module.load (module.js:356:32) [start_dev_rate_distribution_server.sh err (l625)] at Function.Module._load (module.js:312:12) [start_dev_rate_distribution_server.sh err (l626)] at Module.require (module.js:364:17) [start_dev_rate_distribution_server.sh err (l627)] at require (module.js:380:17) [start_dev_rate_distribution_server.sh err (l628)] at WriteStream.<anonymous> (/home/ec2-user/.nvm/v0.10.9/lib/node_modules/pm2/lib/ProcessContainer.js:85:7) [start_dev_rate_distribution_server.sh err (l629)] at WriteStream.EventEmitter.emit (events.js:95:17) [start_dev_rate_distribution_server.sh err (l630)] at WriteStream.<anonymous> (fs.js:1660:10) [start_dev_rate_distribution_server.sh err (l631)] at Object.oncomplete (fs.js:107:15)
pm2を使わず実行するとエラーは出ない。なぜ。。