{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/npm2nix/issues/21","labels_url":"https://api.github.com/repos/NixOS/npm2nix/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/npm2nix/issues/21/comments","events_url":"https://api.github.com/repos/NixOS/npm2nix/issues/21/events","html_url":"https://github.com/NixOS/npm2nix/issues/21","id":71259442,"number":21,"title":"generated file is incomplete","user":{"login":"AladdiX","id":6354077,"avatar_url":"https://avatars.githubusercontent.com/u/6354077?v=3","gravatar_id":"","url":"https://api.github.com/users/AladdiX","html_url":"https://github.com/AladdiX","followers_url":"https://api.github.com/users/AladdiX/followers","following_url":"https://api.github.com/users/AladdiX/following{/other_user}","gists_url":"https://api.github.com/users/AladdiX/gists{/gist_id}","starred_url":"https://api.github.com/users/AladdiX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AladdiX/subscriptions","organizations_url":"https://api.github.com/users/AladdiX/orgs","repos_url":"https://api.github.com/users/AladdiX/repos","events_url":"https://api.github.com/users/AladdiX/events{/privacy}","received_events_url":"https://api.github.com/users/AladdiX/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-04-27T11:41:47Z","updated_at":"2015-06-07T21:44:31Z","closed_at":null,"body":"I'm running npm2nix on my package.json and it finishes without errors, but I'm getting a file that looks like this : \r\n\r\n```javascript\r\n{ self, fetchurl, fetchgit ? null, lib }:\r\n\r\n{\r\n```\r\nI have node v0.12.2 and npm2nix 5.8.1 installed."},"comment":{"url":"https://api.github.com/repos/NixOS/npm2nix/issues/comments/109802119","html_url":"https://github.com/NixOS/npm2nix/issues/21#issuecomment-109802119","issue_url":"https://api.github.com/repos/NixOS/npm2nix/issues/21","id":109802119,"user":{"login":"offlinehacker","id":585547,"avatar_url":"https://avatars.githubusercontent.com/u/585547?v=3","gravatar_id":"","url":"https://api.github.com/users/offlinehacker","html_url":"https://github.com/offlinehacker","followers_url":"https://api.github.com/users/offlinehacker/followers","following_url":"https://api.github.com/users/offlinehacker/following{/other_user}","gists_url":"https://api.github.com/users/offlinehacker/gists{/gist_id}","starred_url":"https://api.github.com/users/offlinehacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/offlinehacker/subscriptions","organizations_url":"https://api.github.com/users/offlinehacker/orgs","repos_url":"https://api.github.com/users/offlinehacker/repos","events_url":"https://api.github.com/users/offlinehacker/events{/privacy}","received_events_url":"https://api.github.com/users/offlinehacker/received_events","type":"User","site_admin":false},"created_at":"2015-06-07T21:44:31Z","updated_at":"2015-06-07T21:44:31Z","body":"It might be sane to add a feature to \"npm ls\" to output json, this solves a\npart of the problem, the other part is fetching dependencies, but this is\nclearly more simple problem. I will check if there are any other issues\nwith taking this approach and write a tool.\n\nOn Sun, Jun 7, 2015 at 11:35 PM Bob van der Linden <notifications@github.com>\nwrote:\n\n> @offlinehacker <https://github.com/offlinehacker> npm ls shows all\n> installed dependencies in node_modules, each with their version number.\n> This could be of use. Not sure if parsing npm ls is the right way or\n> whether we could use npm's code to get the same information in a better\n> format.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/NixOS/npm2nix/issues/21#issuecomment-109801752>.\n>\n"}}