{"action":"created","issue":{"url":"https://api.github.com/repos/creationix/nvm/issues/1290","repository_url":"https://api.github.com/repos/creationix/nvm","labels_url":"https://api.github.com/repos/creationix/nvm/issues/1290/labels{/name}","comments_url":"https://api.github.com/repos/creationix/nvm/issues/1290/comments","events_url":"https://api.github.com/repos/creationix/nvm/issues/1290/events","html_url":"https://github.com/creationix/nvm/issues/1290","id":187643167,"number":1290,"title":"npm is only available in interactive shell","user":{"login":"gsabran","id":4228246,"avatar_url":"https://avatars0.githubusercontent.com/u/4228246?v=4","gravatar_id":"","url":"https://api.github.com/users/gsabran","html_url":"https://github.com/gsabran","followers_url":"https://api.github.com/users/gsabran/followers","following_url":"https://api.github.com/users/gsabran/following{/other_user}","gists_url":"https://api.github.com/users/gsabran/gists{/gist_id}","starred_url":"https://api.github.com/users/gsabran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsabran/subscriptions","organizations_url":"https://api.github.com/users/gsabran/orgs","repos_url":"https://api.github.com/users/gsabran/repos","events_url":"https://api.github.com/users/gsabran/events{/privacy}","received_events_url":"https://api.github.com/users/gsabran/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-11-07T07:33:49Z","updated_at":"2018-03-14T18:23:49Z","closed_at":null,"author_association":"NONE","body":"It seems that nvm modifies `~/.bashrc` to load npm and node. This means that non interactive shells that don't run `bashrc` won't have it. For instance I was running a script that calls npm from cron and it was failing because npm was unknown."},"comment":{"url":"https://api.github.com/repos/creationix/nvm/issues/comments/373126355","html_url":"https://github.com/creationix/nvm/issues/1290#issuecomment-373126355","issue_url":"https://api.github.com/repos/creationix/nvm/issues/1290","id":373126355,"user":{"login":"simov","id":1694112,"avatar_url":"https://avatars0.githubusercontent.com/u/1694112?v=4","gravatar_id":"","url":"https://api.github.com/users/simov","html_url":"https://github.com/simov","followers_url":"https://api.github.com/users/simov/followers","following_url":"https://api.github.com/users/simov/following{/other_user}","gists_url":"https://api.github.com/users/simov/gists{/gist_id}","starred_url":"https://api.github.com/users/simov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simov/subscriptions","organizations_url":"https://api.github.com/users/simov/orgs","repos_url":"https://api.github.com/users/simov/repos","events_url":"https://api.github.com/users/simov/events{/privacy}","received_events_url":"https://api.github.com/users/simov/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T18:23:49Z","updated_at":"2018-03-14T18:23:49Z","author_association":"NONE","body":"I've extracted the above into convenience [gist](https://gist.github.com/simov/cdbebe2d65644279db1323042fcf7624) for easier testing."}}
{"actor":{"display_login":"simov"}}