{"action":"created","issue":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/556","labels_url":"https://api.github.com/repos/jspm/jspm-cli/issues/556/labels{/name}","comments_url":"https://api.github.com/repos/jspm/jspm-cli/issues/556/comments","events_url":"https://api.github.com/repos/jspm/jspm-cli/issues/556/events","html_url":"https://github.com/jspm/jspm-cli/issues/556","id":59348087,"number":556,"title":"Aliased modules in dependencies","user":{"login":"floatdrop","id":365089,"avatar_url":"https://avatars.githubusercontent.com/u/365089?v=3","gravatar_id":"","url":"https://api.github.com/users/floatdrop","html_url":"https://github.com/floatdrop","followers_url":"https://api.github.com/users/floatdrop/followers","following_url":"https://api.github.com/users/floatdrop/following{/other_user}","gists_url":"https://api.github.com/users/floatdrop/gists{/gist_id}","starred_url":"https://api.github.com/users/floatdrop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/floatdrop/subscriptions","organizations_url":"https://api.github.com/users/floatdrop/orgs","repos_url":"https://api.github.com/users/floatdrop/repos","events_url":"https://api.github.com/users/floatdrop/events{/privacy}","received_events_url":"https://api.github.com/users/floatdrop/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-28T16:47:34Z","updated_at":"2015-02-28T20:10:34Z","closed_at":null,"body":"I have aliased module under `jspm.dependencies`:\r\n\r\n```js\r\n{\r\n\"name\": \"A\",\r\n\"jspm\": {\r\n    \"dependencies\": {\r\n      \"b\": \"npm:b_@^1.3.0\",\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nI have second module `B`, that requires `A`:\r\n\r\n```js\r\n{\r\n\"name\": \"B\",\r\n\"jspm\": {\r\n    \"dependencies\": {\r\n      \"A\": \"npm:A@0.0.0\",\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nWhen I'm trying to install this module with `jspm install npm:A`:\r\n\r\n```\r\n     Looking up npm:A\r\n     Updating registry cache...\r\n     Downloading npm:A@0.0.1\r\n\r\nerr  Endpoint not found.\r\nwarn Unable to load endpoint b@npm\r\nerr  Error: EINVAL, rename '/Users/floatdrop/.jspm/packages/npm/A@0.0.1/.'\r\nwarn Installation changes not saved.\r\n```\r\n\r\nSecond error is caused by first - `b@npm` is not installed. But first error caused by aliased `b_` module. This what I get from logging options in https://github.com/jspm/jspm-cli/blob/master/lib/endpoint.js#L76:\r\n\r\n```\r\n{ exactName: 'b@npm:b_@^1.3.0',\r\n  endpoint: 'b@npm',\r\n  package: 'b_',\r\n  name: 'b@npm:b_',\r\n  version: '^1.3.0',\r\n  exactPackage: 'b_@^1.3.0' }\r\n```\r\n\r\nI guess [endpoint](https://github.com/jspm/jspm-cli/blob/master/lib/endpoint.js#L55) is underparsed, so `npm` from config is not picked up."},"comment":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/comments/76543549","html_url":"https://github.com/jspm/jspm-cli/issues/556#issuecomment-76543549","issue_url":"https://api.github.com/repos/jspm/jspm-cli/issues/556","id":76543549,"user":{"login":"floatdrop","id":365089,"avatar_url":"https://avatars.githubusercontent.com/u/365089?v=3","gravatar_id":"","url":"https://api.github.com/users/floatdrop","html_url":"https://github.com/floatdrop","followers_url":"https://api.github.com/users/floatdrop/followers","following_url":"https://api.github.com/users/floatdrop/following{/other_user}","gists_url":"https://api.github.com/users/floatdrop/gists{/gist_id}","starred_url":"https://api.github.com/users/floatdrop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/floatdrop/subscriptions","organizations_url":"https://api.github.com/users/floatdrop/orgs","repos_url":"https://api.github.com/users/floatdrop/repos","events_url":"https://api.github.com/users/floatdrop/events{/privacy}","received_events_url":"https://api.github.com/users/floatdrop/received_events","type":"User","site_admin":false},"created_at":"2015-02-28T20:10:34Z","updated_at":"2015-02-28T20:10:34Z","body":"It think solution is move aliases to own field under `jspm` in `package.json`."}}