{"action":"created","issue":{"url":"https://api.github.com/repos/creationix/nvm/issues/665","labels_url":"https://api.github.com/repos/creationix/nvm/issues/665/labels{/name}","comments_url":"https://api.github.com/repos/creationix/nvm/issues/665/comments","events_url":"https://api.github.com/repos/creationix/nvm/issues/665/events","html_url":"https://github.com/creationix/nvm/issues/665","id":57888772,"number":665,"title":"[Feature Request] Global packages location?","user":{"login":"killswitch","id":352113,"avatar_url":"https://avatars.githubusercontent.com/u/352113?v=3","gravatar_id":"","url":"https://api.github.com/users/killswitch","html_url":"https://github.com/killswitch","followers_url":"https://api.github.com/users/killswitch/followers","following_url":"https://api.github.com/users/killswitch/following{/other_user}","gists_url":"https://api.github.com/users/killswitch/gists{/gist_id}","starred_url":"https://api.github.com/users/killswitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/killswitch/subscriptions","organizations_url":"https://api.github.com/users/killswitch/orgs","repos_url":"https://api.github.com/users/killswitch/repos","events_url":"https://api.github.com/users/killswitch/events{/privacy}","received_events_url":"https://api.github.com/users/killswitch/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/creationix/nvm/labels/feature%20requests","name":"feature requests","color":"207de5"},{"url":"https://api.github.com/repos/creationix/nvm/labels/invalid","name":"invalid","color":"f7c6c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-02-17T06:32:10Z","updated_at":"2015-11-08T03:32:17Z","closed_at":"2015-02-17T17:07:15Z","body":"It's cool that NVM keeps all versions packages and he usage of `nvm copy-packages` is spiffy, but I find it redundant, isn't it possible to have a global packages folder that isn't exclusive to the version? Like `~/.nvm/node_modules` that is accessible in `$PATH` no matter what version you're on?"},"comment":{"url":"https://api.github.com/repos/creationix/nvm/issues/comments/154773594","html_url":"https://github.com/creationix/nvm/issues/665#issuecomment-154773594","issue_url":"https://api.github.com/repos/creationix/nvm/issues/665","id":154773594,"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-11-08T03:32:17Z","updated_at":"2015-11-08T03:32:17Z","body":"@jiahut ah - `npm ls -g --depth=0 | wc -l` would be how many you need to reinstall.\r\n\r\n`nvm reinstall-packages foo` will reinstall all global packages from \"foo\" in the current version of node. There's just a oneliner command you need to run. (Also, `nvm install foo --reinstall-packages-from=bar`)"}}