{"action":"created","issue":{"url":"https://api.github.com/repos/Nyalab/caniuse-api/issues/37","repository_url":"https://api.github.com/repos/Nyalab/caniuse-api","labels_url":"https://api.github.com/repos/Nyalab/caniuse-api/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/Nyalab/caniuse-api/issues/37/comments","events_url":"https://api.github.com/repos/Nyalab/caniuse-api/issues/37/events","html_url":"https://github.com/Nyalab/caniuse-api/issues/37","id":126543409,"number":37,"title":"Postinstall error?","user":{"login":"ir-fuel","id":1573715,"avatar_url":"https://avatars.githubusercontent.com/u/1573715?v=3","gravatar_id":"","url":"https://api.github.com/users/ir-fuel","html_url":"https://github.com/ir-fuel","followers_url":"https://api.github.com/users/ir-fuel/followers","following_url":"https://api.github.com/users/ir-fuel/following{/other_user}","gists_url":"https://api.github.com/users/ir-fuel/gists{/gist_id}","starred_url":"https://api.github.com/users/ir-fuel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ir-fuel/subscriptions","organizations_url":"https://api.github.com/users/ir-fuel/orgs","repos_url":"https://api.github.com/users/ir-fuel/repos","events_url":"https://api.github.com/users/ir-fuel/events{/privacy}","received_events_url":"https://api.github.com/users/ir-fuel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Nyalab/caniuse-api/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-13T23:49:25Z","updated_at":"2016-02-20T18:14:36Z","closed_at":"2016-01-17T11:21:42Z","body":"I run npm install in my node Docker container and I get this in the output logs:\r\n\r\n```\r\n> caniuse-api@1.4.1 postinstall /var/www/node_modules/caniuse-api\r\n> node generator.js\r\n\r\n\r\n\r\nThe command '/bin/sh -c npm install' returned a non-zero code: 1\r\n```\r\n\r\nMind you, I don't explicitly depend on this package. I have no idea which package is responsible for downloading it.\r\n\r\nIs there a way of figuring out what's going on? I am no `npm` expert by any means so any options that could show me more details are more than welcome.\r\n\r\nFYI\r\n```\r\nnpm info using npm@3.5.3\r\nnpm info using node@v4.2.2\r\n```"},"comment":{"url":"https://api.github.com/repos/Nyalab/caniuse-api/issues/comments/186661497","html_url":"https://github.com/Nyalab/caniuse-api/issues/37#issuecomment-186661497","issue_url":"https://api.github.com/repos/Nyalab/caniuse-api/issues/37","id":186661497,"user":{"login":"jephir","id":577585,"avatar_url":"https://avatars.githubusercontent.com/u/577585?v=3","gravatar_id":"","url":"https://api.github.com/users/jephir","html_url":"https://github.com/jephir","followers_url":"https://api.github.com/users/jephir/followers","following_url":"https://api.github.com/users/jephir/following{/other_user}","gists_url":"https://api.github.com/users/jephir/gists{/gist_id}","starred_url":"https://api.github.com/users/jephir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jephir/subscriptions","organizations_url":"https://api.github.com/users/jephir/orgs","repos_url":"https://api.github.com/users/jephir/repos","events_url":"https://api.github.com/users/jephir/events{/privacy}","received_events_url":"https://api.github.com/users/jephir/received_events","type":"User","site_admin":false},"created_at":"2016-02-20T18:14:36Z","updated_at":"2016-02-20T18:14:36Z","body":"I had this same error when running in Docker. In my case it was caused by not having enough free memory on the Docker host. I solved the problem by just stopping unneeded Docker containers. Partial *npm-debug.log*:\r\n\r\n```\r\n58232 silly postinstall caniuse-api@1.4.1 /data/node_modules/.staging/caniuse-api-b43c6555\r\n58233 info lifecycle caniuse-api@1.4.1~postinstall: caniuse-api@1.4.1\r\n58234 verbose lifecycle caniuse-api@1.4.1~postinstall: unsafe-perm in lifecycle false\r\n58235 verbose lifecycle caniuse-api@1.4.1~postinstall: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/data/node_modules/caniuse-api/node_modules/.bin:/data/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\r\n58236 verbose lifecycle caniuse-api@1.4.1~postinstall: CWD: /data/node_modules/caniuse-api\r\n58237 silly lifecycle caniuse-api@1.4.1~postinstall: Args: [ '-c', 'node generator.js' ]\r\n58238 verbose stack Error: spawn ENOMEM\r\n58238 verbose stack     at exports._errnoException (util.js:856:11)\r\n58238 verbose stack     at ChildProcess.spawn (internal/child_process.js:298:11)\r\n58238 verbose stack     at exports.spawn (child_process.js:362:9)\r\n58238 verbose stack     at spawn (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:7:13)\r\n58238 verbose stack     at runCmd_ (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:224:14)\r\n58238 verbose stack     at /usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:186:7\r\n58238 verbose stack     at nextTickCallbackWith0Args (node.js:453:9)\r\n58238 verbose stack     at process._tickCallback (node.js:382:13)\r\n58239 verbose cwd /data\r\n58240 error Linux 3.13.0-74-generic\r\n58241 error argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"install\"\r\n58242 error node v5.6.0\r\n58243 error npm  v3.6.0\r\n58244 error code ENOMEM\r\n58245 error errno ENOMEM\r\n58246 error syscall spawn\r\n58247 error spawn ENOMEM\r\n58248 error If you need help, you may report this error at:\r\n58248 error     <https://github.com/npm/npm/issues>\r\n58249 verbose exit [ 1, true ]\r\n```"}}