{"action":"closed","issue":{"url":"https://api.github.com/repos/atom/electron/issues/3627","labels_url":"https://api.github.com/repos/atom/electron/issues/3627/labels{/name}","comments_url":"https://api.github.com/repos/atom/electron/issues/3627/comments","events_url":"https://api.github.com/repos/atom/electron/issues/3627/events","html_url":"https://github.com/atom/electron/issues/3627","id":119440313,"number":3627,"title":"Error “env: node: No such file or directory” with child_process.spawn in only .app (distribution file)","user":{"login":"ledinhphuong","id":2038911,"avatar_url":"https://avatars.githubusercontent.com/u/2038911?v=3","gravatar_id":"","url":"https://api.github.com/users/ledinhphuong","html_url":"https://github.com/ledinhphuong","followers_url":"https://api.github.com/users/ledinhphuong/followers","following_url":"https://api.github.com/users/ledinhphuong/following{/other_user}","gists_url":"https://api.github.com/users/ledinhphuong/gists{/gist_id}","starred_url":"https://api.github.com/users/ledinhphuong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ledinhphuong/subscriptions","organizations_url":"https://api.github.com/users/ledinhphuong/orgs","repos_url":"https://api.github.com/users/ledinhphuong/repos","events_url":"https://api.github.com/users/ledinhphuong/events{/privacy}","received_events_url":"https://api.github.com/users/ledinhphuong/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-30T08:17:06Z","updated_at":"2015-11-30T12:50:38Z","closed_at":"2015-11-30T12:50:38Z","body":"I get an “env: node: No such file or directory” error when i try to run my node module in child process from main process:\r\n```js\r\nthis._process = spawn(`path/to/node_modules/.bin/my_file`, args)\r\n```\r\nI tried with options = `{env: process.env}` for spawn but it still didn't work. Also, I tried to workaround with `asar = true/false`.\r\n\r\nMy environment:\r\n>Mac OSX 10.11\r\n>electron v0.35.0"}}