{"action":"created","issue":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/614","labels_url":"https://api.github.com/repos/jspm/jspm-cli/issues/614/labels{/name}","comments_url":"https://api.github.com/repos/jspm/jspm-cli/issues/614/comments","events_url":"https://api.github.com/repos/jspm/jspm-cli/issues/614/events","html_url":"https://github.com/jspm/jspm-cli/issues/614","id":64250544,"number":614,"title":"Support nvm global PATH through liftoff","user":{"login":"guybedford","id":598730,"avatar_url":"https://avatars.githubusercontent.com/u/598730?v=3","gravatar_id":"","url":"https://api.github.com/users/guybedford","html_url":"https://github.com/guybedford","followers_url":"https://api.github.com/users/guybedford/followers","following_url":"https://api.github.com/users/guybedford/following{/other_user}","gists_url":"https://api.github.com/users/guybedford/gists{/gist_id}","starred_url":"https://api.github.com/users/guybedford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guybedford/subscriptions","organizations_url":"https://api.github.com/users/guybedford/orgs","repos_url":"https://api.github.com/users/guybedford/repos","events_url":"https://api.github.com/users/guybedford/events{/privacy}","received_events_url":"https://api.github.com/users/guybedford/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jspm/jspm-cli/labels/bug","name":"bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-25T11:50:10Z","updated_at":"2015-06-10T09:29:36Z","closed_at":"2015-06-10T09:29:36Z","body":"Posted by @subesokun:\r\n\r\n> When using nvm every globally installed package gets installed in the folder \"~/.nvm/$VERSION/lib/node_modules\" depending on the current active node version. When trying to install jspm-git it will be copied under \"~/.nvm/$VERSION/lib/node_modules/jspm-git\" and jspm will be installed under \"~/.nvm/$VERSION/lib/node_modules/jspm\"\r\n\r\n> Now when jspm (\"~/.nvm/$VERSION/lib/node_modules/jspm\") tries to require() the jspm-git registry then nodejs will try to find it in the /usr/local/node_modules folder but won't find it of course and jspm fails. Initally I thought this is a bug of nvm but after reading some comments of the nvm developers I'm in doubt about that... See the following comments\r\n\r\nIt would be interesting to see how Node Liftoff already solves this. Perhaps we just need to set an environment variable in `jspm.js` (liftoff) that passes the global path through to be used for global requires.\r\n\r\nIt is also potentially a liftoff issue as well, so must have been discussed there."},"comment":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/comments/110670287","html_url":"https://github.com/jspm/jspm-cli/issues/614#issuecomment-110670287","issue_url":"https://api.github.com/repos/jspm/jspm-cli/issues/614","id":110670287,"user":{"login":"guybedford","id":598730,"avatar_url":"https://avatars.githubusercontent.com/u/598730?v=3","gravatar_id":"","url":"https://api.github.com/users/guybedford","html_url":"https://github.com/guybedford","followers_url":"https://api.github.com/users/guybedford/followers","following_url":"https://api.github.com/users/guybedford/following{/other_user}","gists_url":"https://api.github.com/users/guybedford/gists{/gist_id}","starred_url":"https://api.github.com/users/guybedford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guybedford/subscriptions","organizations_url":"https://api.github.com/users/guybedford/orgs","repos_url":"https://api.github.com/users/guybedford/repos","events_url":"https://api.github.com/users/guybedford/events{/privacy}","received_events_url":"https://api.github.com/users/guybedford/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T09:29:36Z","updated_at":"2015-06-10T09:29:36Z","body":"Yes I think that one needs to either install all local or all global. Perhaps include in the jspm-git docs that if installing jspm locally, jspm-git should also be installed locally. It makes sense to lock both down I think. Closing, but let me know if any further issues come up here."}}