{"action":"closed","issue":{"url":"https://api.github.com/repos/npm/npm/issues/7659","labels_url":"https://api.github.com/repos/npm/npm/issues/7659/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/7659/comments","events_url":"https://api.github.com/repos/npm/npm/issues/7659/events","html_url":"https://github.com/npm/npm/issues/7659","id":62473636,"number":7659,"title":"Looks like NPM can not find the node executable","user":{"login":"srossross","id":741611,"avatar_url":"https://avatars.githubusercontent.com/u/741611?v=3","gravatar_id":"","url":"https://api.github.com/users/srossross","html_url":"https://github.com/srossross","followers_url":"https://api.github.com/users/srossross/followers","following_url":"https://api.github.com/users/srossross/following{/other_user}","gists_url":"https://api.github.com/users/srossross/gists{/gist_id}","starred_url":"https://api.github.com/users/srossross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srossross/subscriptions","organizations_url":"https://api.github.com/users/srossross/orgs","repos_url":"https://api.github.com/users/srossross/repos","events_url":"https://api.github.com/users/srossross/events{/privacy}","received_events_url":"https://api.github.com/users/srossross/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/npm/npm/labels/support","name":"support","color":"FF91AF"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-03-17T18:09:29Z","updated_at":"2015-05-20T03:33:48Z","closed_at":"2015-05-20T03:33:48Z","body":"I'm trying to install a 3rd party package which works find when I install it manually, however this happens when I run it in an automated build script.\r\n\r\nI think the `Error: spawn ENOENT` is coming from `child_process.spawn('node', ...)` which can not find `node`.\r\n\r\nI have tried this with npm v2.7.1 and v1.4.28\r\n\r\n```\r\n+ which node\r\n/Users/sean/anaconda/envs/_build/bin/node\r\n+ node --version\r\nv0.10.35\r\n+ echo PATH is /Users/sean/anaconda/envs/_build/bin:/Users/sean/anaconda/bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin\r\nPATH is /Users/sean/anaconda/envs/_build/bin:/Users/sean/anaconda/bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin\r\n+ npm install --debug git://github.com/srossross/node-authenticate-pam.git\r\nnpm WARN package.json wnext@0.0.0 No repository field.\r\n-\r\n> authenticate-pam@0.2.2 install /Users/sean/Documents/workspace/wnext/node_modules/authenticate-pam\r\n> node-gyp rebuild\r\n\r\ngyp ERR! configure error \r\ngyp ERR! stack Error: spawn ENOENT\r\ngyp ERR! stack     at errnoException (child_process.js:1011:11)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:802:34)\r\ngyp ERR! System Darwin 13.4.0\r\ngyp ERR! command \"node\" \"/Users/sean/anaconda/envs/_build/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd /Users/sean/Documents/workspace/wnext/node_modules/authenticate-pam\r\ngyp ERR! node -v v0.10.35\r\ngyp ERR! node-gyp -v v1.0.1\r\ngyp ERR! not ok \r\n\r\nnpm ERR! authenticate-pam@0.2.2 install: `node-gyp rebuild`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the authenticate-pam@0.2.2 install script.\r\nnpm ERR! This is most likely a problem with the authenticate-pam package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node-gyp rebuild\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls authenticate-pam\r\nnpm ERR! There is likely additional logging output above.\r\nnpm ERR! System Darwin 13.4.0\r\nnpm ERR! command \"/Users/sean/anaconda/envs/_build/bin/node\" \"/Users/sean/anaconda/envs/_build/bin/npm\" \"install\" \"--debug\" \"git://github.com/srossross/node-authenticate-pam.git\"\r\nnpm ERR! cwd /Users/sean/Documents/workspace/wnext\r\nnpm ERR! node -v v0.10.35\r\nnpm ERR! npm -v 1.4.28\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! not ok code 0\r\nCommand failed: /bin/bash -x -e /Users/sean/Documents/workspace/wnext/conda.recipe/build.sh\r\nmr_chomps:conda.recipe sean$ \r\n\r\n```"}}