run pm2 logs error SyntaxError: Unexpected token
问题 I want to see logs of my project Steps : I clone a socket app. Then I run npm install pm2 -g to install pm2 I run pm2 start It works. It display a table of my socket app But if I run pm2 logs to see logs, there exist error like this : 1|mycompany | C:\PROGRAM FILES\NODEJS\NPM.CMD:1 1|mycompany | (function (exports, require, module, __filename, __dirname) { :: Created by npm, please don't edit manually. 1|mycompany | ^ 1|mycompany | 1|mycompany | SyntaxError: Unexpected token : 1|mycompany |