{"action":"created","issue":{"url":"https://api.github.com/repos/Unitech/pm2/issues/2742","repository_url":"https://api.github.com/repos/Unitech/pm2","labels_url":"https://api.github.com/repos/Unitech/pm2/issues/2742/labels{/name}","comments_url":"https://api.github.com/repos/Unitech/pm2/issues/2742/comments","events_url":"https://api.github.com/repos/Unitech/pm2/issues/2742/events","html_url":"https://github.com/Unitech/pm2/issues/2742","id":211122229,"node_id":"MDU6SXNzdWUyMTExMjIyMjk=","number":2742,"title":"Unable to use TypeScript","user":{"login":"MickL","id":5103210,"node_id":"MDQ6VXNlcjUxMDMyMTA=","avatar_url":"https://avatars0.githubusercontent.com/u/5103210?v=4","gravatar_id":"","url":"https://api.github.com/users/MickL","html_url":"https://github.com/MickL","followers_url":"https://api.github.com/users/MickL/followers","following_url":"https://api.github.com/users/MickL/following{/other_user}","gists_url":"https://api.github.com/users/MickL/gists{/gist_id}","starred_url":"https://api.github.com/users/MickL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MickL/subscriptions","organizations_url":"https://api.github.com/users/MickL/orgs","repos_url":"https://api.github.com/users/MickL/repos","events_url":"https://api.github.com/users/MickL/events{/privacy}","received_events_url":"https://api.github.com/users/MickL/received_events","type":"User","site_admin":false},"labels":[{"id":125446670,"node_id":"MDU6TGFiZWwxMjU0NDY2NzA=","url":"https://api.github.com/repos/Unitech/pm2/labels/S:%20In%20progress","name":"S: In progress","color":"9ddc80","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":20,"created_at":"2017-03-01T15:51:25Z","updated_at":"2019-01-01T03:56:49Z","closed_at":"2018-07-09T13:12:37Z","author_association":"NONE","body":"#### Expected behaviour\r\n`pm2 start x.ts` should work. (Maybe TypeScript should be installed on default so everything works out of the box)\r\n\r\n#### Actual behaviour\r\nI was not able to start a ts file. js works fine.\r\n\r\nBoth ts-node and index have status \"errored\"\r\n\r\npm2 list:\r\n<img width=\"610\" alt=\"bildschirmfoto 2017-03-01 um 16 45 24\" src=\"https://cloud.githubusercontent.com/assets/5103210/23467527/96f84050-fe9e-11e6-9fe6-74cac1a84976.png\">\r\n\r\nI did `pm2 install typescript` and `pm2 install node-ts`\r\n\r\nHere is the log:\r\n<img width=\"1026\" alt=\"bildschirmfoto 2017-03-01 um 16 47 59\" src=\"https://cloud.githubusercontent.com/assets/5103210/23467625/de3c6fae-fe9e-11e6-9359-d2b343068703.png\">\r\n\r\nWhen i try: `pm2 install @types/node` it says:\r\n```\r\nError: Cannot find module '/home/mick/.pm2/node_modules/node/package.json'\r\n    at Function.Module._resolveFilename (module.js:470:15)\r\n    at Function.Module._load (module.js:418:25)\r\n    at Module.require (module.js:498:17)\r\n    at require (internal/module.js:20:19)\r\n    at startModule (/usr/lib/node_modules/pm2/lib/API/Modules/Modularizer.js:33:22)\r\n    at /usr/lib/node_modules/pm2/lib/API/Modules/Modularizer.js:158:9\r\n    at /usr/lib/node_modules/pm2/lib/Configuration.js:64:14\r\n    at FSReqWrap.oncomplete (fs.js:114:15)\r\n```\r\n\r\n\r\n#### Software versions used\r\n\r\n```\r\nOS         : Ubuntu Server 16.04.2 LTS\r\nnode.js    : v7.6.0\r\nPM2        : 2.4.2\r\n```\r\n\r\n#### PM2 Log output\r\n\r\n```\r\n2017-03-01 07:42:02: App [index] with id [1] and pid [50857], exited with code [1] via signal [SIGINT]\r\n2017-03-01 07:42:02: Starting execution sequence in -fork mode- for app name:index id:1\r\n2017-03-01 07:42:02: App name:index id:1 online\r\n2017-03-01 07:42:03: App [index] with id [1] and pid [50889], exited with code [1] via signal [SIGINT]\r\n2017-03-01 07:42:03: Starting execution sequence in -fork mode- for app name:index id:1\r\n2017-03-01 07:42:03: App name:index id:1 online\r\n2017-03-01 07:42:03: App [index] with id [1] and pid [50921], exited with code [1] via signal [SIGINT]\r\n2017-03-01 07:42:03: Starting execution sequence in -fork mode- for app name:index id:1\r\n2017-03-01 07:42:03: App name:index id:1 online\r\n2017-03-01 07:42:04: App [index] with id [1] and pid [50953], exited with code [1] via signal [SIGINT]\r\n2017-03-01 07:42:04: Starting execution sequence in -fork mode- for app name:index id:1\r\n2017-03-01 07:42:04: App name:index id:1 online\r\n2017-03-01 07:42:05: App [index] with id [1] and pid [50985], exited with code [1] via signal [SIGINT]\r\n2017-03-01 07:42:05: Starting execution sequence in -fork mode- for app name:index id:1\r\n2017-03-01 07:42:05: App name:index id:1 online\r\n2017-03-01 07:42:06: App [index] with id [1] and pid [51027], exited with code [1] via signal [SIGINT]\r\n2017-03-01 07:42:06: Starting execution sequence in -fork mode- for app name:index id:1\r\n2017-03-01 07:42:06: App name:index id:1 online\r\n2017-03-01 07:42:07: App [index] with id [1] and pid [51059], exited with code [1] via signal [SIGINT]\r\n2017-03-01 07:42:07: Starting execution sequence in -fork mode- for app name:index id:1\r\n2017-03-01 07:42:07: App name:index id:1 online\r\n2017-03-01 07:42:08: App [index] with id [1] and pid [51091], exited with code [1] via signal [SIGINT]\r\n2017-03-01 07:42:08: Starting execution sequence in -fork mode- for app name:index id:1\r\n2017-03-01 07:42:08: App name:index id:1 online\r\n2017-03-01 07:42:08: App [index] with id [1] and pid [51123], exited with code [1] via signal [SIGINT]\r\n2017-03-01 07:42:08: Starting execution sequence in -fork mode- for app name:index id:1\r\n2017-03-01 07:42:08: App name:index id:1 online\r\n2017-03-01 07:42:09: App [index] with id [1] and pid [51155], exited with code [1] via signal [SIGINT]\r\n2017-03-01 07:42:09: Starting execution sequence in -fork mode- for app name:index id:1\r\n2017-03-01 07:42:09: App name:index id:1 online\r\n2017-03-01 07:42:10: App [index] with id [1] and pid [51187], exited with code [1] via signal [SIGINT]\r\n2017-03-01 07:42:10: Starting execution sequence in -fork mode- for app name:index id:1\r\n2017-03-01 07:42:10: App name:index id:1 online\r\n2017-03-01 07:42:11: App [index] with id [1] and pid [51219], exited with code [1] via signal [SIGINT]\r\n2017-03-01 07:42:11: Starting execution sequence in -fork mode- for app name:index id:1\r\n2017-03-01 07:42:11: App name:index id:1 online\r\n2017-03-01 07:42:11: App [index] with id [1] and pid [51251], exited with code [1] via signal [SIGINT]\r\n2017-03-01 07:42:11: Starting execution sequence in -fork mode- for app name:index id:1\r\n2017-03-01 07:42:11: App name:index id:1 online\r\n2017-03-01 07:42:12: App [index] with id [1] and pid [51283], exited with code [1] via signal [SIGINT]\r\n2017-03-01 07:42:12: Starting execution sequence in -fork mode- for app name:index id:1\r\n2017-03-01 07:42:12: App name:index id:1 online\r\n2017-03-01 07:42:13: App [index] with id [1] and pid [51315], exited with code [1] via signal [SIGINT]\r\n2017-03-01 07:42:13: Starting execution sequence in -fork mode- for app name:index id:1\r\n2017-03-01 07:42:13: App name:index id:1 online\r\n2017-03-01 07:42:14: App [index] with id [1] and pid [51347], exited with code [1] via signal [SIGINT]\r\n2017-03-01 07:42:14: Starting execution sequence in -fork mode- for app name:index id:1\r\n2017-03-01 07:42:14: App name:index id:1 online\r\n2017-03-01 07:42:15: App [index] with id [1] and pid [51379], exited with code [1] via signal [SIGINT]\r\n2017-03-01 07:42:15: Script /home/mick/opnsrc/server/index.ts had too many unstable restarts (16). Stopped. \"errored\"\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Unitech/pm2/issues/comments/450708347","html_url":"https://github.com/Unitech/pm2/issues/2742#issuecomment-450708347","issue_url":"https://api.github.com/repos/Unitech/pm2/issues/2742","id":450708347,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDcwODM0Nw==","user":{"login":"Himself65","id":14026360,"node_id":"MDQ6VXNlcjE0MDI2MzYw","avatar_url":"https://avatars0.githubusercontent.com/u/14026360?v=4","gravatar_id":"","url":"https://api.github.com/users/Himself65","html_url":"https://github.com/Himself65","followers_url":"https://api.github.com/users/Himself65/followers","following_url":"https://api.github.com/users/Himself65/following{/other_user}","gists_url":"https://api.github.com/users/Himself65/gists{/gist_id}","starred_url":"https://api.github.com/users/Himself65/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Himself65/subscriptions","organizations_url":"https://api.github.com/users/Himself65/orgs","repos_url":"https://api.github.com/users/Himself65/repos","events_url":"https://api.github.com/users/Himself65/events{/privacy}","received_events_url":"https://api.github.com/users/Himself65/received_events","type":"User","site_admin":false},"created_at":"2019-01-01T03:56:49Z","updated_at":"2019-01-01T03:56:49Z","author_association":"NONE","body":"@SerhiiBilyk\nyou can see my repo\nhttps://github.com/Himself65/Astoria"}}
{"actor":{"display_login":"Himself65"}}