{"action":"created","issue":{"url":"https://api.github.com/repos/toddbluhm/env-cmd/issues/13","repository_url":"https://api.github.com/repos/toddbluhm/env-cmd","labels_url":"https://api.github.com/repos/toddbluhm/env-cmd/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/toddbluhm/env-cmd/issues/13/comments","events_url":"https://api.github.com/repos/toddbluhm/env-cmd/issues/13/events","html_url":"https://github.com/toddbluhm/env-cmd/issues/13","id":193826217,"number":13,"title":"Fails to run any command?","user":{"login":"sontek","id":151924,"avatar_url":"https://avatars.githubusercontent.com/u/151924?v=3","gravatar_id":"","url":"https://api.github.com/users/sontek","html_url":"https://github.com/sontek","followers_url":"https://api.github.com/users/sontek/followers","following_url":"https://api.github.com/users/sontek/following{/other_user}","gists_url":"https://api.github.com/users/sontek/gists{/gist_id}","starred_url":"https://api.github.com/users/sontek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sontek/subscriptions","organizations_url":"https://api.github.com/users/sontek/orgs","repos_url":"https://api.github.com/users/sontek/repos","events_url":"https://api.github.com/users/sontek/events{/privacy}","received_events_url":"https://api.github.com/users/sontek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-06T16:56:11Z","updated_at":"2016-12-07T05:22:56Z","closed_at":null,"body":"I'm trying to launch webpack with environment variables so in my `packages.json` I do:\r\n\r\n```\r\nenv-cmd production webpack --bail\r\n```\r\n\r\nBut this returns:\r\n\r\n```\r\n> env-cmd production webpack --bail\r\n\r\nspawn webpack ENOENT\r\n```\r\n\r\nI assumed this was because it hasn't activated `node_modules/` in its path but even if I work around this:\r\n\r\n```\r\n./node_modules/env-cmd/bin/env-cmd.js production node ./node_modules/webpack/bin/webpack.js\r\nspawn node ENOENT\r\n```\r\n\r\nThe only thing that works is:\r\n\r\n```\r\n./node_modules/env-cmd/bin/env-cmd.js node ./node_modules/webpack/bin/webpack.js\r\n```\r\n\r\nbut I have no idea what environment that is running?"},"comment":{"url":"https://api.github.com/repos/toddbluhm/env-cmd/issues/comments/265358882","html_url":"https://github.com/toddbluhm/env-cmd/issues/13#issuecomment-265358882","issue_url":"https://api.github.com/repos/toddbluhm/env-cmd/issues/13","id":265358882,"user":{"login":"toddbluhm","id":197282,"avatar_url":"https://avatars.githubusercontent.com/u/197282?v=3","gravatar_id":"","url":"https://api.github.com/users/toddbluhm","html_url":"https://github.com/toddbluhm","followers_url":"https://api.github.com/users/toddbluhm/followers","following_url":"https://api.github.com/users/toddbluhm/following{/other_user}","gists_url":"https://api.github.com/users/toddbluhm/gists{/gist_id}","starred_url":"https://api.github.com/users/toddbluhm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toddbluhm/subscriptions","organizations_url":"https://api.github.com/users/toddbluhm/orgs","repos_url":"https://api.github.com/users/toddbluhm/repos","events_url":"https://api.github.com/users/toddbluhm/events{/privacy}","received_events_url":"https://api.github.com/users/toddbluhm/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T05:22:56Z","updated_at":"2016-12-07T05:22:56Z","body":"Figured out the issue. I was not adding back in the system env vars after reading the `.env-cmdrc` file so the spawned command had no system paths etc... Fix should be up soon."}}
{"actor":{"display_login":"toddbluhm"}}