{"action":"created","issue":{"url":"https://api.github.com/repos/creationix/nvm/issues/658","labels_url":"https://api.github.com/repos/creationix/nvm/issues/658/labels{/name}","comments_url":"https://api.github.com/repos/creationix/nvm/issues/658/comments","events_url":"https://api.github.com/repos/creationix/nvm/issues/658/events","html_url":"https://github.com/creationix/nvm/issues/658","id":57515033,"number":658,"title":"\"nvm use\" not persisting","user":{"login":"YourDeveloperFriend","id":1808286,"avatar_url":"https://avatars.githubusercontent.com/u/1808286?v=3","gravatar_id":"","url":"https://api.github.com/users/YourDeveloperFriend","html_url":"https://github.com/YourDeveloperFriend","followers_url":"https://api.github.com/users/YourDeveloperFriend/followers","following_url":"https://api.github.com/users/YourDeveloperFriend/following{/other_user}","gists_url":"https://api.github.com/users/YourDeveloperFriend/gists{/gist_id}","starred_url":"https://api.github.com/users/YourDeveloperFriend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YourDeveloperFriend/subscriptions","organizations_url":"https://api.github.com/users/YourDeveloperFriend/orgs","repos_url":"https://api.github.com/users/YourDeveloperFriend/repos","events_url":"https://api.github.com/users/YourDeveloperFriend/events{/privacy}","received_events_url":"https://api.github.com/users/YourDeveloperFriend/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-02-12T20:30:24Z","updated_at":"2015-02-13T18:03:01Z","closed_at":null,"body":"Sorry, I'm sure this is a duplicate, but I can't find anything in the miriad of issues. I'm running on Ubuntu 14.04, nvm version 0.23.3, and I just recently installed nvm. I used to be on `n` but I switched here in order to try out iojs, so it's possible that some residual `n` is conflicting with nvm. I removed all the node versions with `n` except 0.12.0, uninstalled `n`, installed `nvm`, and I properly sourced nvm as mentioned in issue #394. Then I ran into the following issue:\r\n\r\n```bash\r\n$ nvm current\r\nv0.12.0\r\n$ nvm install 0.10\r\n######################################################################## 100.0%\r\nNow using node v0.10.36\r\n$ nvm current # NOTE: didn't change\r\nv0.12.0\r\n$ node -v\r\nv0.12.0\r\n$ nvm use 0.10\r\nNow using node v0.10.36\r\n$ nvm current\r\nv0.12.0\r\n$ node -v\r\nv0.12.0\r\n$ nvm install iojs\r\n######################################################################## 100.0%\r\nWARNING: checksums are currently disabled for io.js\r\nNow using io.js v1.2.0\r\n$ nvm current\r\niojs-v1.2.0\r\n$ node -v # NOTE: didn't change AND different from nvm current\r\nv0.12.0\r\n```\r\n\r\nThis all works just fine when run in `sudo su`, but when I exit that shell, it doesn't permeate.\r\n\r\nMore possible clues:\r\n\r\n```bash\r\n$ nvm run 0.10 -v\r\nRunning node v0.10.36\r\nv0.12.0\r\n$ nvm exec 0.10 node -v\r\nRunning node v0.10.36\r\nv0.10.36\r\n$ nvm run iojs -v\r\nRunning io.js v1.2.0\r\nv1.2.0\r\n```\r\n\r\nNot sure how to proceed."},"comment":{"url":"https://api.github.com/repos/creationix/nvm/issues/comments/74297473","html_url":"https://github.com/creationix/nvm/issues/658#issuecomment-74297473","issue_url":"https://api.github.com/repos/creationix/nvm/issues/658","id":74297473,"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":"2015-02-13T18:03:01Z","updated_at":"2015-02-13T18:03:01Z","body":"This is very confusing :-) so, when you start with `nvm deactivate`, your `PATH` should be such that `nvm current` reports \"system\" (ie, `/usr/local/bin/node`). From there, `nvm use iojs` for example should activate the latest `io.js` version, and your `PATH` should be such that `nvm current` and `node -v` report that `io.js` version, and so on. From there, `nvm use 0.10` should *remove* the `io.js` path from your `PATH`, and then add the 0.10 version to it, and then `nvm current` and `node -v` should report the 0.10 version.\r\n\r\nThe only thing I can thing of is that somewhere in that chain, the `PATH` changes aren't happening - either the removal, or the addition.\r\n\r\nWhat's the output of `alias`? Just want to make certain that you don't have any builtins aliased - even though we use `command` internally for most of them to bypass aliases."}}