{"action":"created","issue":{"url":"https://api.github.com/repos/creationix/nvm/issues/939","repository_url":"https://api.github.com/repos/creationix/nvm","labels_url":"https://api.github.com/repos/creationix/nvm/issues/939/labels{/name}","comments_url":"https://api.github.com/repos/creationix/nvm/issues/939/comments","events_url":"https://api.github.com/repos/creationix/nvm/issues/939/events","html_url":"https://github.com/creationix/nvm/issues/939","id":122028123,"number":939,"title":"nvm command not working on ubuntu 14.04","user":{"login":"calidion","id":131776,"avatar_url":"https://avatars.githubusercontent.com/u/131776?v=3","gravatar_id":"","url":"https://api.github.com/users/calidion","html_url":"https://github.com/calidion","followers_url":"https://api.github.com/users/calidion/followers","following_url":"https://api.github.com/users/calidion/following{/other_user}","gists_url":"https://api.github.com/users/calidion/gists{/gist_id}","starred_url":"https://api.github.com/users/calidion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calidion/subscriptions","organizations_url":"https://api.github.com/users/calidion/orgs","repos_url":"https://api.github.com/users/calidion/repos","events_url":"https://api.github.com/users/calidion/events{/privacy}","received_events_url":"https://api.github.com/users/calidion/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/creationix/nvm/labels/needs%20followup","name":"needs followup","color":"FA94FD"},{"url":"https://api.github.com/repos/creationix/nvm/labels/OS:%20ubuntu","name":"OS: ubuntu","color":"f7c6c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-12-14T11:53:06Z","updated_at":"2016-03-13T05:33:54Z","closed_at":"2016-03-13T05:33:54Z","body":"```bash\r\nexport NVM_DIR=\"$HOME/.nvm\"\r\n[ -s \"$NVM_DIR/nvm.sh\" ] && . \"$NVM_DIR/nvm.sh\" # This loads nvm\r\n```\r\n1. First add the above code\r\n2. then $NVM_DIR is set.\r\n\r\n```bash\r\n>echo $NVM_DIR\r\n/home/eric/.nvm\r\n```\r\n3.<code>nvm</code> is not working, the folowing indicates that the command is not found.\r\n\r\n```bash\r\n>nvm\r\nnvm\r\n未找到 'nvm' 命令，您要输入的是否是：\r\n 命令 'nvi' 来自于包 'nvi' (universe)\r\n 命令 'npm' 来自于包 'npm' (universe)\r\n 命令 'kvm' 来自于包 'qemu-kvm' (main)\r\n 命令 'nam' 来自于包 'nam' (universe)\r\n 命令 'pvm' 来自于包 'pvm' (universe)\r\n 命令 'n-m' 来自于包 'python-networkmanager' (universe)\r\n 命令 'vm' 来自于包 'mgetty-voice' (universe)\r\n 命令 'nm' 来自于包 'binutils' (main)\r\n 命令 'nm' 来自于包 'binutils-multiarch' (main)\r\n 命令 'lvm' 来自于包 'lvm2' (main)\r\nnvm：未找到命令\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/creationix/nvm/issues/comments/195881964","html_url":"https://github.com/creationix/nvm/issues/939#issuecomment-195881964","issue_url":"https://api.github.com/repos/creationix/nvm/issues/939","id":195881964,"user":{"login":"ljharb","id":45469,"avatar_url":"https://avatars.githubusercontent.com/u/45469?v=3","gravatar_id":"","url":"https://api.github.com/users/ljharb","html_url":"https://github.com/ljharb","followers_url":"https://api.github.com/users/ljharb/followers","following_url":"https://api.github.com/users/ljharb/following{/other_user}","gists_url":"https://api.github.com/users/ljharb/gists{/gist_id}","starred_url":"https://api.github.com/users/ljharb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljharb/subscriptions","organizations_url":"https://api.github.com/users/ljharb/orgs","repos_url":"https://api.github.com/users/ljharb/repos","events_url":"https://api.github.com/users/ljharb/events{/privacy}","received_events_url":"https://api.github.com/users/ljharb/received_events","type":"User","site_admin":false},"created_at":"2016-03-13T05:33:54Z","updated_at":"2016-03-13T05:33:54Z","body":"@calidion please reopen if the above suggestions don't work for you!"}}