{"action":"created","comment":{"url":"https://api.github.com/repos/creationix/nvm/pulls/comments/36242987","id":36242987,"diff_hunk":"@@ -76,6 +76,11 @@ In place of a version pointer like \"0.10\", you can use the special default alias\n     nvm use stable\n     nvm run unstable --version\n \n+If you want to install a new version of Node.js and migrate npm packages from a previous version:\n+\n+    nvm install v0.10.40 --reinstall-packages-from=0.10.39\n+    nvm install v0.12.7 --reinstall-packages-from=0.12.6","path":"README.markdown","position":7,"original_position":7,"commit_id":"b7a93be02e88c0020372b615dbc650c682df2531","original_commit_id":"b7a93be02e88c0020372b615dbc650c682df2531","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},"body":"Assuming `0.12.6` was the latest node version installed, `node` is an alias for `stable` which is an alias for \"last even minor version of node\" which resolves to `0.12.6`","created_at":"2015-08-04T21:15:46Z","updated_at":"2015-08-04T21:15:46Z","html_url":"https://github.com/creationix/nvm/pull/795#discussion_r36242987","pull_request_url":"https://api.github.com/repos/creationix/nvm/pulls/795","_links":{"self":{"href":"https://api.github.com/repos/creationix/nvm/pulls/comments/36242987"},"html":{"href":"https://github.com/creationix/nvm/pull/795#discussion_r36242987"},"pull_request":{"href":"https://api.github.com/repos/creationix/nvm/pulls/795"}}},"pull_request":{"url":"https://api.github.com/repos/creationix/nvm/pulls/795","id":41607297,"html_url":"https://github.com/creationix/nvm/pull/795","diff_url":"https://github.com/creationix/nvm/pull/795.diff","patch_url":"https://github.com/creationix/nvm/pull/795.patch","issue_url":"https://api.github.com/repos/creationix/nvm/issues/795","number":795,"state":"open","locked":false,"title":"Updated readme file to include --reinstall-packages-from","user":{"login":"reybango","id":1748,"avatar_url":"https://avatars.githubusercontent.com/u/1748?v=3","gravatar_id":"","url":"https://api.github.com/users/reybango","html_url":"https://github.com/reybango","followers_url":"https://api.github.com/users/reybango/followers","following_url":"https://api.github.com/users/reybango/following{/other_user}","gists_url":"https://api.github.com/users/reybango/gists{/gist_id}","starred_url":"https://api.github.com/users/reybango/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reybango/subscriptions","organizations_url":"https://api.github.com/users/reybango/orgs","repos_url":"https://api.github.com/users/reybango/repos","events_url":"https://api.github.com/users/reybango/events{/privacy}","received_events_url":"https://api.github.com/users/reybango/received_events","type":"User","site_admin":false},"body":"I wanted to add the syntax and example usage for the --reinstall-packages-from when migrating packages to a new Node install to the Readme file.","created_at":"2015-08-04T19:24:53Z","updated_at":"2015-08-04T21:15:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d604e5d4893400490ad82d68b4152d6e252b888f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/creationix/nvm/pulls/795/commits","review_comments_url":"https://api.github.com/repos/creationix/nvm/pulls/795/comments","review_comment_url":"https://api.github.com/repos/creationix/nvm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/creationix/nvm/issues/795/comments","statuses_url":"https://api.github.com/repos/creationix/nvm/statuses/b7a93be02e88c0020372b615dbc650c682df2531","head":{"label":"reybango:master","ref":"master","sha":"b7a93be02e88c0020372b615dbc650c682df2531","user":{"login":"reybango","id":1748,"avatar_url":"https://avatars.githubusercontent.com/u/1748?v=3","gravatar_id":"","url":"https://api.github.com/users/reybango","html_url":"https://github.com/reybango","followers_url":"https://api.github.com/users/reybango/followers","following_url":"https://api.github.com/users/reybango/following{/other_user}","gists_url":"https://api.github.com/users/reybango/gists{/gist_id}","starred_url":"https://api.github.com/users/reybango/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reybango/subscriptions","organizations_url":"https://api.github.com/users/reybango/orgs","repos_url":"https://api.github.com/users/reybango/repos","events_url":"https://api.github.com/users/reybango/events{/privacy}","received_events_url":"https://api.github.com/users/reybango/received_events","type":"User","site_admin":false},"repo":{"id":40204181,"name":"nvm","full_name":"reybango/nvm","owner":{"login":"reybango","id":1748,"avatar_url":"https://avatars.githubusercontent.com/u/1748?v=3","gravatar_id":"","url":"https://api.github.com/users/reybango","html_url":"https://github.com/reybango","followers_url":"https://api.github.com/users/reybango/followers","following_url":"https://api.github.com/users/reybango/following{/other_user}","gists_url":"https://api.github.com/users/reybango/gists{/gist_id}","starred_url":"https://api.github.com/users/reybango/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reybango/subscriptions","organizations_url":"https://api.github.com/users/reybango/orgs","repos_url":"https://api.github.com/users/reybango/repos","events_url":"https://api.github.com/users/reybango/events{/privacy}","received_events_url":"https://api.github.com/users/reybango/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/reybango/nvm","description":"Node Version Manager - Simple bash script to manage multiple active node.js versions","fork":true,"url":"https://api.github.com/repos/reybango/nvm","forks_url":"https://api.github.com/repos/reybango/nvm/forks","keys_url":"https://api.github.com/repos/reybango/nvm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reybango/nvm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reybango/nvm/teams","hooks_url":"https://api.github.com/repos/reybango/nvm/hooks","issue_events_url":"https://api.github.com/repos/reybango/nvm/issues/events{/number}","events_url":"https://api.github.com/repos/reybango/nvm/events","assignees_url":"https://api.github.com/repos/reybango/nvm/assignees{/user}","branches_url":"https://api.github.com/repos/reybango/nvm/branches{/branch}","tags_url":"https://api.github.com/repos/reybango/nvm/tags","blobs_url":"https://api.github.com/repos/reybango/nvm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reybango/nvm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reybango/nvm/git/refs{/sha}","trees_url":"https://api.github.com/repos/reybango/nvm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reybango/nvm/statuses/{sha}","languages_url":"https://api.github.com/repos/reybango/nvm/languages","stargazers_url":"https://api.github.com/repos/reybango/nvm/stargazers","contributors_url":"https://api.github.com/repos/reybango/nvm/contributors","subscribers_url":"https://api.github.com/repos/reybango/nvm/subscribers","subscription_url":"https://api.github.com/repos/reybango/nvm/subscription","commits_url":"https://api.github.com/repos/reybango/nvm/commits{/sha}","git_commits_url":"https://api.github.com/repos/reybango/nvm/git/commits{/sha}","comments_url":"https://api.github.com/repos/reybango/nvm/comments{/number}","issue_comment_url":"https://api.github.com/repos/reybango/nvm/issues/comments{/number}","contents_url":"https://api.github.com/repos/reybango/nvm/contents/{+path}","compare_url":"https://api.github.com/repos/reybango/nvm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reybango/nvm/merges","archive_url":"https://api.github.com/repos/reybango/nvm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reybango/nvm/downloads","issues_url":"https://api.github.com/repos/reybango/nvm/issues{/number}","pulls_url":"https://api.github.com/repos/reybango/nvm/pulls{/number}","milestones_url":"https://api.github.com/repos/reybango/nvm/milestones{/number}","notifications_url":"https://api.github.com/repos/reybango/nvm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reybango/nvm/labels{/name}","releases_url":"https://api.github.com/repos/reybango/nvm/releases{/id}","created_at":"2015-08-04T19:12:20Z","updated_at":"2015-08-04T19:12:20Z","pushed_at":"2015-08-04T19:23:12Z","git_url":"git://github.com/reybango/nvm.git","ssh_url":"git@github.com:reybango/nvm.git","clone_url":"https://github.com/reybango/nvm.git","svn_url":"https://github.com/reybango/nvm","homepage":"","size":4693,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"creationix:master","ref":"master","sha":"d7035c5e61b0b9985d3280409632b09f3eef74c9","user":{"login":"creationix","id":89353,"avatar_url":"https://avatars.githubusercontent.com/u/89353?v=3","gravatar_id":"","url":"https://api.github.com/users/creationix","html_url":"https://github.com/creationix","followers_url":"https://api.github.com/users/creationix/followers","following_url":"https://api.github.com/users/creationix/following{/other_user}","gists_url":"https://api.github.com/users/creationix/gists{/gist_id}","starred_url":"https://api.github.com/users/creationix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/creationix/subscriptions","organizations_url":"https://api.github.com/users/creationix/orgs","repos_url":"https://api.github.com/users/creationix/repos","events_url":"https://api.github.com/users/creationix/events{/privacy}","received_events_url":"https://api.github.com/users/creationix/received_events","type":"User","site_admin":false},"repo":{"id":612230,"name":"nvm","full_name":"creationix/nvm","owner":{"login":"creationix","id":89353,"avatar_url":"https://avatars.githubusercontent.com/u/89353?v=3","gravatar_id":"","url":"https://api.github.com/users/creationix","html_url":"https://github.com/creationix","followers_url":"https://api.github.com/users/creationix/followers","following_url":"https://api.github.com/users/creationix/following{/other_user}","gists_url":"https://api.github.com/users/creationix/gists{/gist_id}","starred_url":"https://api.github.com/users/creationix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/creationix/subscriptions","organizations_url":"https://api.github.com/users/creationix/orgs","repos_url":"https://api.github.com/users/creationix/repos","events_url":"https://api.github.com/users/creationix/events{/privacy}","received_events_url":"https://api.github.com/users/creationix/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/creationix/nvm","description":"Node Version Manager - Simple bash script to manage multiple active node.js versions","fork":false,"url":"https://api.github.com/repos/creationix/nvm","forks_url":"https://api.github.com/repos/creationix/nvm/forks","keys_url":"https://api.github.com/repos/creationix/nvm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/creationix/nvm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/creationix/nvm/teams","hooks_url":"https://api.github.com/repos/creationix/nvm/hooks","issue_events_url":"https://api.github.com/repos/creationix/nvm/issues/events{/number}","events_url":"https://api.github.com/repos/creationix/nvm/events","assignees_url":"https://api.github.com/repos/creationix/nvm/assignees{/user}","branches_url":"https://api.github.com/repos/creationix/nvm/branches{/branch}","tags_url":"https://api.github.com/repos/creationix/nvm/tags","blobs_url":"https://api.github.com/repos/creationix/nvm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/creationix/nvm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/creationix/nvm/git/refs{/sha}","trees_url":"https://api.github.com/repos/creationix/nvm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/creationix/nvm/statuses/{sha}","languages_url":"https://api.github.com/repos/creationix/nvm/languages","stargazers_url":"https://api.github.com/repos/creationix/nvm/stargazers","contributors_url":"https://api.github.com/repos/creationix/nvm/contributors","subscribers_url":"https://api.github.com/repos/creationix/nvm/subscribers","subscription_url":"https://api.github.com/repos/creationix/nvm/subscription","commits_url":"https://api.github.com/repos/creationix/nvm/commits{/sha}","git_commits_url":"https://api.github.com/repos/creationix/nvm/git/commits{/sha}","comments_url":"https://api.github.com/repos/creationix/nvm/comments{/number}","issue_comment_url":"https://api.github.com/repos/creationix/nvm/issues/comments{/number}","contents_url":"https://api.github.com/repos/creationix/nvm/contents/{+path}","compare_url":"https://api.github.com/repos/creationix/nvm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/creationix/nvm/merges","archive_url":"https://api.github.com/repos/creationix/nvm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/creationix/nvm/downloads","issues_url":"https://api.github.com/repos/creationix/nvm/issues{/number}","pulls_url":"https://api.github.com/repos/creationix/nvm/pulls{/number}","milestones_url":"https://api.github.com/repos/creationix/nvm/milestones{/number}","notifications_url":"https://api.github.com/repos/creationix/nvm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/creationix/nvm/labels{/name}","releases_url":"https://api.github.com/repos/creationix/nvm/releases{/id}","created_at":"2010-04-15T17:47:47Z","updated_at":"2015-08-04T20:22:48Z","pushed_at":"2015-08-04T21:04:03Z","git_url":"git://github.com/creationix/nvm.git","ssh_url":"git@github.com:creationix/nvm.git","clone_url":"https://github.com/creationix/nvm.git","svn_url":"https://github.com/creationix/nvm","homepage":"","size":4693,"stargazers_count":7507,"watchers_count":7507,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":729,"mirror_url":null,"open_issues_count":76,"forks":729,"open_issues":76,"watchers":7507,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/creationix/nvm/pulls/795"},"html":{"href":"https://github.com/creationix/nvm/pull/795"},"issue":{"href":"https://api.github.com/repos/creationix/nvm/issues/795"},"comments":{"href":"https://api.github.com/repos/creationix/nvm/issues/795/comments"},"review_comments":{"href":"https://api.github.com/repos/creationix/nvm/pulls/795/comments"},"review_comment":{"href":"https://api.github.com/repos/creationix/nvm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/creationix/nvm/pulls/795/commits"},"statuses":{"href":"https://api.github.com/repos/creationix/nvm/statuses/b7a93be02e88c0020372b615dbc650c682df2531"}}}}