{"action":"created","issue":{"url":"https://api.github.com/repos/creationix/nvm/issues/576","repository_url":"https://api.github.com/repos/creationix/nvm","labels_url":"https://api.github.com/repos/creationix/nvm/issues/576/labels{/name}","comments_url":"https://api.github.com/repos/creationix/nvm/issues/576/comments","events_url":"https://api.github.com/repos/creationix/nvm/issues/576/events","html_url":"https://github.com/creationix/nvm/issues/576","id":48543898,"number":576,"title":"-bash: nvm: command not found","user":{"login":"apaternite","id":2855142,"avatar_url":"https://avatars3.githubusercontent.com/u/2855142?v=4","gravatar_id":"","url":"https://api.github.com/users/apaternite","html_url":"https://github.com/apaternite","followers_url":"https://api.github.com/users/apaternite/followers","following_url":"https://api.github.com/users/apaternite/following{/other_user}","gists_url":"https://api.github.com/users/apaternite/gists{/gist_id}","starred_url":"https://api.github.com/users/apaternite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apaternite/subscriptions","organizations_url":"https://api.github.com/users/apaternite/orgs","repos_url":"https://api.github.com/users/apaternite/repos","events_url":"https://api.github.com/users/apaternite/events{/privacy}","received_events_url":"https://api.github.com/users/apaternite/received_events","type":"User","site_admin":false},"labels":[{"id":196081473,"url":"https://api.github.com/repos/creationix/nvm/labels/installing%20nvm:%20profile%20detection","name":"installing nvm: profile detection","color":"fad8c7","default":false},{"id":132570776,"url":"https://api.github.com/repos/creationix/nvm/labels/needs%20followup","name":"needs followup","color":"FA94FD","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":122,"created_at":"2014-11-12T18:23:48Z","updated_at":"2018-04-23T00:13:19Z","closed_at":"2014-11-22T18:21:57Z","author_association":"NONE","body":"Running terminal in Mac OS X Yosemite.\n\nFollowed the installation instructions and restarted terminal: \ncurl https://raw.githubusercontent.com/creationix/nvm/v0.18.0/install.sh | bash\n\nWhen using nvm I always get -bash: nvm: command not found\n\nWhen installing again: \n=> nvm is already installed in /Users/Tony/.nvm, trying to update\n=> HEAD is now at 5f5eb47... v0.18.0\n\nI do have npm already installed. Does that matter?\n"},"comment":{"url":"https://api.github.com/repos/creationix/nvm/issues/comments/383423392","html_url":"https://github.com/creationix/nvm/issues/576#issuecomment-383423392","issue_url":"https://api.github.com/repos/creationix/nvm/issues/576","id":383423392,"user":{"login":"garrettH3S","id":14841506,"avatar_url":"https://avatars0.githubusercontent.com/u/14841506?v=4","gravatar_id":"","url":"https://api.github.com/users/garrettH3S","html_url":"https://github.com/garrettH3S","followers_url":"https://api.github.com/users/garrettH3S/followers","following_url":"https://api.github.com/users/garrettH3S/following{/other_user}","gists_url":"https://api.github.com/users/garrettH3S/gists{/gist_id}","starred_url":"https://api.github.com/users/garrettH3S/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garrettH3S/subscriptions","organizations_url":"https://api.github.com/users/garrettH3S/orgs","repos_url":"https://api.github.com/users/garrettH3S/repos","events_url":"https://api.github.com/users/garrettH3S/events{/privacy}","received_events_url":"https://api.github.com/users/garrettH3S/received_events","type":"User","site_admin":false},"created_at":"2018-04-23T00:13:19Z","updated_at":"2018-04-23T00:13:19Z","author_association":"NONE","body":"I had a similar issue using Capistrano to run npm commands (using nvm). My `.bashrc` file had the following right at the top,\r\n```\r\n# If not running interactively, don't do anything\r\ncase $- in\r\n    *i*) ;;\r\n      *) return;;\r\nesac\r\n```\r\nwhich was causing me issues when running the capistrano commands. I solved this my moving the  `export NVM_DIR...` above this `case`. \r\n```\r\nexport NVM_DIR=\"$HOME/.nvm\"\r\n[ -s \"$NVM_DIR/nvm.sh\" ] && \\. \"$NVM_DIR/nvm.sh\"  # This loads nvm\r\n[ -s \"$NVM_DIR/bash_completion\" ] && \\. \"$NVM_DIR/bash_completion\"  # This loads nvm bash_completion\r\nsource $NVM_DIR/nvm.sh\r\n\r\n# If not running interactively, don't do anything\r\ncase $- in\r\n    *i*) ;;\r\n      *) return;;\r\nesac\r\n```"}}
{"actor":{"display_login":"garrettH3S"}}