{"action":"created","issue":{"url":"https://api.github.com/repos/Perryvw/TypescriptToLua/issues/195","repository_url":"https://api.github.com/repos/Perryvw/TypescriptToLua","labels_url":"https://api.github.com/repos/Perryvw/TypescriptToLua/issues/195/labels{/name}","comments_url":"https://api.github.com/repos/Perryvw/TypescriptToLua/issues/195/comments","events_url":"https://api.github.com/repos/Perryvw/TypescriptToLua/issues/195/events","html_url":"https://github.com/Perryvw/TypescriptToLua/issues/195","id":361300352,"node_id":"MDU6SXNzdWUzNjEzMDAzNTI=","number":195,"title":"Problems installing via npm, ENOENT, dist/index.js","user":{"login":"cymerrad","id":22897727,"node_id":"MDQ6VXNlcjIyODk3NzI3","avatar_url":"https://avatars1.githubusercontent.com/u/22897727?v=4","gravatar_id":"","url":"https://api.github.com/users/cymerrad","html_url":"https://github.com/cymerrad","followers_url":"https://api.github.com/users/cymerrad/followers","following_url":"https://api.github.com/users/cymerrad/following{/other_user}","gists_url":"https://api.github.com/users/cymerrad/gists{/gist_id}","starred_url":"https://api.github.com/users/cymerrad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cymerrad/subscriptions","organizations_url":"https://api.github.com/users/cymerrad/orgs","repos_url":"https://api.github.com/users/cymerrad/repos","events_url":"https://api.github.com/users/cymerrad/events{/privacy}","received_events_url":"https://api.github.com/users/cymerrad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-09-18T13:18:26Z","updated_at":"2018-09-21T07:57:21Z","closed_at":null,"author_association":"NONE","body":"Hi\r\nI'm having a problem installing the transpiler via npm.\r\n\r\n## What I did:\r\n```\r\nsudo npm install -g typescript-to-lua\r\n```\r\n\r\n## What I expected to happen:\r\nSuccessful installation\r\n\r\n## What happened instead\r\n```\r\nnpm ERR! path /usr/lib/node_modules/typescript-to-lua/dist/index.js\r\nnpm ERR! code ENOENT\r\nnpm ERR! errno -2\r\nnpm ERR! syscall chmod\r\nnpm ERR! enoent ENOENT: no such file or directory, chmod '/usr/lib/node_modules/typescript-to-lua/dist/index.js'\r\nnpm ERR! enoent This is related to npm not being able to find a file.\r\nnpm ERR! enoent \r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR!     /home/radoslaw/.npm/_logs/2018-09-18T13_01_23_621Z-debug.log\r\n```\r\nTail of aforementioned log:\r\n```\r\n1255 silly build typescript-to-lua@0.7.0\r\n1256 info linkStuff typescript-to-lua@0.7.0\r\n1257 silly linkStuff typescript-to-lua@0.7.0 has /usr/lib/node_modules as its parent node_modules\r\n1258 silly linkStuff typescript-to-lua@0.7.0 is part of a global install\r\n1259 silly linkStuff typescript-to-lua@0.7.0 is installed into a global node_modules\r\n1260 silly linkStuff typescript-to-lua@0.7.0 is installed into the top-level global node_modules\r\n1261 verbose linkBins [ { tstl: './dist/index.js' }, '/usr/bin', true ]\r\n1262 timing action:build Completed in 12ms\r\n1263 verbose unlock done using /home/radoslaw/.npm/_locks/staging-a072192f34a17023.lock for /usr/lib/node_modules/.staging\r\n1264 timing stage:rollbackFailedOptional Completed in 34ms\r\n1265 timing stage:runTopLevelLifecycles Completed in 1716ms\r\n1266 verbose stack Error: ENOENT: no such file or directory, chmod '/usr/lib/node_modules/typescript-to-lua/dist/index.js'\r\n1267 verbose cwd /home/radoslaw/Documents/nakama/lua-logic-ts\r\n1268 verbose Linux 4.15.0-33-generic\r\n1269 verbose argv \"/usr/bin/node\" \"/usr/bin/npm\" \"install\" \"-g\" \"typescript-to-lua\"\r\n1270 verbose node v10.10.0\r\n1271 verbose npm  v6.4.1\r\n1272 error path /usr/lib/node_modules/typescript-to-lua/dist/index.js\r\n1273 error code ENOENT\r\n1274 error errno -2\r\n1275 error syscall chmod\r\n1276 error enoent ENOENT: no such file or directory, chmod '/usr/lib/node_modules/typescript-to-lua/dist/index.js'\r\n1277 error enoent This is related to npm not being able to find a file.\r\n1278 verbose exit [ -2, true ]\r\n```\r\n\r\nInstalling it locally doesn't help - it fails with the same error (up to location of node_modules in my project)  \r\n\r\n## What is my environment like\r\nUbuntu 16.04, npm 6.4.1, node 10.10.0\r\n\r\n## What I've tried doing besides that\r\n1. Installing locally (mentioned)\r\n1. Installing tsc, node-ts globally and retrying installation\r\n1. Cloning the repo and building from source, which went OK. Unfortunately I don't know what to do next to get a binary or a script, that will act as a transpiler.  \r\n"},"comment":{"url":"https://api.github.com/repos/Perryvw/TypescriptToLua/issues/comments/423448062","html_url":"https://github.com/Perryvw/TypescriptToLua/issues/195#issuecomment-423448062","issue_url":"https://api.github.com/repos/Perryvw/TypescriptToLua/issues/195","id":423448062,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzQ0ODA2Mg==","user":{"login":"cymerrad","id":22897727,"node_id":"MDQ6VXNlcjIyODk3NzI3","avatar_url":"https://avatars1.githubusercontent.com/u/22897727?v=4","gravatar_id":"","url":"https://api.github.com/users/cymerrad","html_url":"https://github.com/cymerrad","followers_url":"https://api.github.com/users/cymerrad/followers","following_url":"https://api.github.com/users/cymerrad/following{/other_user}","gists_url":"https://api.github.com/users/cymerrad/gists{/gist_id}","starred_url":"https://api.github.com/users/cymerrad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cymerrad/subscriptions","organizations_url":"https://api.github.com/users/cymerrad/orgs","repos_url":"https://api.github.com/users/cymerrad/repos","events_url":"https://api.github.com/users/cymerrad/events{/privacy}","received_events_url":"https://api.github.com/users/cymerrad/received_events","type":"User","site_admin":false},"created_at":"2018-09-21T07:57:21Z","updated_at":"2018-09-21T07:57:21Z","author_association":"NONE","body":"Works.\r\nGlobal installation (`npm i -g ... `) fails, however. It is definitely of less importance, though, and I consider the problem fixed. Issue can be closed now.  \r\n\r\nBtw, I'm going to rely on tstl heavily in coming weeks, and I've already found some irritating bugs, like tstl ignoring tstl-specific fields in tsconfig.json or that decorator `!TupleReturn` doesn't work on class methods. Would you care if I sent you a PR some day?  \r\nI've never done that before and this would pop my cherry :blush: "}}
{"actor":{"display_login":"cymerrad"}}