{"action":"created","issue":{"url":"https://api.github.com/repos/jspm/npm/issues/94","labels_url":"https://api.github.com/repos/jspm/npm/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/jspm/npm/issues/94/comments","events_url":"https://api.github.com/repos/jspm/npm/issues/94/events","html_url":"https://github.com/jspm/npm/issues/94","id":108307317,"number":94,"title":"npm Enterprise and scoped packages","user":{"login":"gustavnikolaj","id":1371503,"avatar_url":"https://avatars.githubusercontent.com/u/1371503?v=3","gravatar_id":"","url":"https://api.github.com/users/gustavnikolaj","html_url":"https://github.com/gustavnikolaj","followers_url":"https://api.github.com/users/gustavnikolaj/followers","following_url":"https://api.github.com/users/gustavnikolaj/following{/other_user}","gists_url":"https://api.github.com/users/gustavnikolaj/gists{/gist_id}","starred_url":"https://api.github.com/users/gustavnikolaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gustavnikolaj/subscriptions","organizations_url":"https://api.github.com/users/gustavnikolaj/orgs","repos_url":"https://api.github.com/users/gustavnikolaj/repos","events_url":"https://api.github.com/users/gustavnikolaj/events{/privacy}","received_events_url":"https://api.github.com/users/gustavnikolaj/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-09-25T11:23:33Z","updated_at":"2015-09-28T21:07:28Z","closed_at":"2015-09-25T15:22:47Z","body":"This issue replaces https://github.com/jspm/jspm-cli/issues/1164 as this seems to be a more fitting place for it.\r\n\r\n> We have an npm Enterprise installation in house. That means that our scoped packages are not just using a normal scope that uses the original registry, but they are using a scope which should point to another registry.\r\n>\r\n> In .npmrc it's handled by setting a value `@myScope:registry = \"http://foo.bar.com\"`\r\n \r\n>  ```js\r\nproject $ jspm install foo=npm:@myScope/foo\r\n     Looking up npm:@myScope/foo\r\n> \r\n> err  Repo npm:@myScope/foo not found!\r\n> \r\n> warn Installation changes not saved.\r\n> ```\r\n> If I change the npm registry value in ~/.jspm/config to my npme-registry it works as expected.\r\n> \r\n> Am I right, when I assume that this is not supported? Do you have any pointers towards where I should start if I were to submit this functionality as a PR?\r\n\r\nA comment on that issue, also from me:\r\n\r\n> We could make the property registryUrl on the NpmLocation class into a function, which would return the registryUrl when given a package name, or even just a scope name. If no arguments is given, it will just return whatever it does now.\r\n> \r\n> https://github.com/jspm/npm/blob/master/lib/npm.js#L37\r\n> \r\n> It's needed to support different registries depending on the scope, in order to support NPM Enterprise properly. Would this change go against any conventions or reasoning in the project, that I'm not aware of?"},"comment":{"url":"https://api.github.com/repos/jspm/npm/issues/comments/143874482","html_url":"https://github.com/jspm/npm/issues/94#issuecomment-143874482","issue_url":"https://api.github.com/repos/jspm/npm/issues/94","id":143874482,"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-09-28T21:07:28Z","updated_at":"2015-09-28T21:07:28Z","body":"@gustavnikolaj thanks I've posted https://github.com/jspm/npm/issues/98 to track this."}}