{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/265","labels_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/265/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/265/comments","events_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/265/events","html_url":"https://github.com/NativeScript/nativescript-cli/issues/265","id":59355111,"number":265,"title":"node postinstall.js fails","user":{"login":"unlight","id":301732,"avatar_url":"https://avatars.githubusercontent.com/u/301732?v=3","gravatar_id":"","url":"https://api.github.com/users/unlight","html_url":"https://github.com/unlight","followers_url":"https://api.github.com/users/unlight/followers","following_url":"https://api.github.com/users/unlight/following{/other_user}","gists_url":"https://api.github.com/users/unlight/gists{/gist_id}","starred_url":"https://api.github.com/users/unlight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unlight/subscriptions","organizations_url":"https://api.github.com/users/unlight/orgs","repos_url":"https://api.github.com/users/unlight/repos","events_url":"https://api.github.com/users/unlight/events{/privacy}","received_events_url":"https://api.github.com/users/unlight/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-28T19:45:06Z","updated_at":"2015-03-01T00:39:32Z","closed_at":null,"body":"Node v0.10.36, Windows\r\n```\r\nnpm i https://github.com/NativeScript/nativescript-cli/archive/master.tar.gz -msvs_version=2013\r\n```\r\n\r\n```sh\r\n> nativescript@0.9.0 postinstall .../node_modules\\nativescript\r\n> node postinstall.js\r\n\r\nstderr:\r\nmodule.js:340\r\n    throw err;\r\n          ^\r\nError: Cannot find module '../lib/nativescript-cli.js'\r\n    at Function.Module._resolveFilename (module.js:338:15)\r\n    at Function.Module._load (module.js:280:25)\r\n    at Module.require (module.js:364:17)\r\n    at require (module.js:380:17)\r\n    at Object.<anonymous> (..\\node_modules\\nativescript\\bin\\nativescript.js:4:1)\r\n    at Module._compile (module.js:456:26)\r\n    at Object.Module._extensions..js (module.js:474:10)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:312:12)\r\n    at Function.Module.runMain (module.js:497:10)\r\n```"},"comment":{"url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/comments/76561260","html_url":"https://github.com/NativeScript/nativescript-cli/issues/265#issuecomment-76561260","issue_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/265","id":76561260,"user":{"login":"rosen-vladimirov","id":8351653,"avatar_url":"https://avatars.githubusercontent.com/u/8351653?v=3","gravatar_id":"","url":"https://api.github.com/users/rosen-vladimirov","html_url":"https://github.com/rosen-vladimirov","followers_url":"https://api.github.com/users/rosen-vladimirov/followers","following_url":"https://api.github.com/users/rosen-vladimirov/following{/other_user}","gists_url":"https://api.github.com/users/rosen-vladimirov/gists{/gist_id}","starred_url":"https://api.github.com/users/rosen-vladimirov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rosen-vladimirov/subscriptions","organizations_url":"https://api.github.com/users/rosen-vladimirov/orgs","repos_url":"https://api.github.com/users/rosen-vladimirov/repos","events_url":"https://api.github.com/users/rosen-vladimirov/events{/privacy}","received_events_url":"https://api.github.com/users/rosen-vladimirov/received_events","type":"User","site_admin":false},"created_at":"2015-03-01T00:39:32Z","updated_at":"2015-03-01T00:39:32Z","body":"Hi @unlight \r\nWhen you are using archive github option, it does not get the sources from the submodules. In our case nativescript-cli has one submodule - https://github.com/telerik/mobile-cli-lib Your command is not fetching it and that's why the installation fails. I suggest you to clone the repository and call git submodule init; git submodule update and create a pack from there (npm pack should do the job for you). Hope this helps. "}}