{"action":"closed","issue":{"url":"https://api.github.com/repos/electron/electron/issues/4979","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/4979/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/4979/comments","events_url":"https://api.github.com/repos/electron/electron/issues/4979/events","html_url":"https://github.com/electron/electron/issues/4979","id":145053536,"number":4979,"title":"Can't run electron from vscode due to ATOM_SHELL_INTERNAL_RUN_AS_NODE=1","user":{"login":"unional","id":3254987,"avatar_url":"https://avatars.githubusercontent.com/u/3254987?v=3","gravatar_id":"","url":"https://api.github.com/users/unional","html_url":"https://github.com/unional","followers_url":"https://api.github.com/users/unional/followers","following_url":"https://api.github.com/users/unional/following{/other_user}","gists_url":"https://api.github.com/users/unional/gists{/gist_id}","starred_url":"https://api.github.com/users/unional/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unional/subscriptions","organizations_url":"https://api.github.com/users/unional/orgs","repos_url":"https://api.github.com/users/unional/repos","events_url":"https://api.github.com/users/unional/events{/privacy}","received_events_url":"https://api.github.com/users/unional/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-01T00:28:13Z","updated_at":"2016-04-07T02:02:05Z","closed_at":"2016-04-07T02:02:05Z","body":"I'm using `vscode` and `vscode-startanyshell` to open `cmder`.\r\n\r\nWhen I run `browserify test.js | tape-run`\r\nIt fails with:\r\n```sh\r\nmodule.js:340\r\n    throw err;\r\n    ^\r\nError: Cannot find module 'electron'\r\n```\r\n\r\nAfter some digging, it turns out to be ATOM_SHELL_INTERNAL_RUN_AS_NODE=1 causes the issue.\r\n\r\nOnce I remove that env variable, it started working again.\r\n\r\nReference:\r\nhttps://github.com/remcoros/vscode-startanyshell/issues/2"}}