{"action":"created","issue":{"url":"https://api.github.com/repos/ember-cli/ember-cli/issues/5880","repository_url":"https://api.github.com/repos/ember-cli/ember-cli","labels_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/5880/labels{/name}","comments_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/5880/comments","events_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/5880/events","html_url":"https://github.com/ember-cli/ember-cli/issues/5880","id":153290416,"number":5880,"title":"\"ember install package@version\" fails after npm","user":{"login":"mike-north","id":558005,"avatar_url":"https://avatars.githubusercontent.com/u/558005?v=3","gravatar_id":"","url":"https://api.github.com/users/mike-north","html_url":"https://github.com/mike-north","followers_url":"https://api.github.com/users/mike-north/followers","following_url":"https://api.github.com/users/mike-north/following{/other_user}","gists_url":"https://api.github.com/users/mike-north/gists{/gist_id}","starred_url":"https://api.github.com/users/mike-north/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mike-north/subscriptions","organizations_url":"https://api.github.com/users/mike-north/orgs","repos_url":"https://api.github.com/users/mike-north/repos","events_url":"https://api.github.com/users/mike-north/events{/privacy}","received_events_url":"https://api.github.com/users/mike-north/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ember-cli/ember-cli/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/ember-cli/ember-cli/labels/Regression","name":"Regression","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ember-cli/ember-cli/milestones/20","html_url":"https://github.com/ember-cli/ember-cli/milestones/v2.6.0","labels_url":"https://api.github.com/repos/ember-cli/ember-cli/milestones/20/labels","id":1622583,"number":20,"title":"v2.6.0","description":"","creator":{"login":"Turbo87","id":141300,"avatar_url":"https://avatars.githubusercontent.com/u/141300?v=3","gravatar_id":"","url":"https://api.github.com/users/Turbo87","html_url":"https://github.com/Turbo87","followers_url":"https://api.github.com/users/Turbo87/followers","following_url":"https://api.github.com/users/Turbo87/following{/other_user}","gists_url":"https://api.github.com/users/Turbo87/gists{/gist_id}","starred_url":"https://api.github.com/users/Turbo87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Turbo87/subscriptions","organizations_url":"https://api.github.com/users/Turbo87/orgs","repos_url":"https://api.github.com/users/Turbo87/repos","events_url":"https://api.github.com/users/Turbo87/events{/privacy}","received_events_url":"https://api.github.com/users/Turbo87/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":13,"state":"open","created_at":"2016-03-04T16:13:17Z","updated_at":"2016-05-20T06:47:00Z","due_on":"2016-05-19T22:00:00Z","closed_at":null},"comments":3,"created_at":"2016-05-05T18:14:38Z","updated_at":"2016-05-20T12:03:49Z","closed_at":null,"body":"### What went wrong\r\n\r\nI (and I think most users) expect `ember install` to match reasonably with `npm install` in terms of support for the way packages are defined. For example, I would expect both of these to result in the same version of the package being added to my project:\r\n\r\n```sh\r\nnpm install ember-cp-validations@~2.7.0\r\nember install ember-cp-validations@~2.7.0\r\n```\r\n\r\nI'm now seeing that what happens if you attempt the `ember install` above is that the modification is made to `package.json`, but then the user gets an error\r\n\r\n```\r\nInstall failed. Could not find addon with name: ember-cp-validations@~2.7.0\r\n```\r\n\r\n### Suspected cause\r\n\r\nTo me, this smells like we're losing the distinction between name and \"name@target\" at the time we attempt to run an installation blueprint. Sure enough, even after you get the above error, if you run the blueprint explicitly\r\n\r\n```\r\nember g ember-cp-validations\r\n```\r\n\r\nEverything is run as you would expect.\r\n\r\n### This used to work fine\r\n\r\n- I tested with ember-cli `1.13.8` and `2.5.0`, and this bug doesn't appear to be present\r\n\r\n### To reproduce\r\n\r\n```sh\r\nember new ember123 && \\\r\n   cd ember123 && \\\r\n   npm install --save-dev ember-cli@2.6.0-beta.2 && \\\r\n   ember install ember-cp-validations@~2.7.0\r\n```\r\n \r\nOutput from ember version --verbose:\r\n```\r\nember-cli: 2.6.0-beta.2\r\nhttp_parser: 2.6.2\r\nnode: 5.10.1\r\nv8: 4.6.85.31\r\nuv: 1.8.0\r\nzlib: 1.2.8\r\nares: 1.10.1-DEV\r\nicu: 56.1\r\nmodules: 47\r\nopenssl: 1.0.2g\r\nos: darwin x64\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ember-cli/ember-cli/issues/comments/220588154","html_url":"https://github.com/ember-cli/ember-cli/issues/5880#issuecomment-220588154","issue_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/5880","id":220588154,"user":{"login":"ooluwadiya","id":6438402,"avatar_url":"https://avatars.githubusercontent.com/u/6438402?v=3","gravatar_id":"","url":"https://api.github.com/users/ooluwadiya","html_url":"https://github.com/ooluwadiya","followers_url":"https://api.github.com/users/ooluwadiya/followers","following_url":"https://api.github.com/users/ooluwadiya/following{/other_user}","gists_url":"https://api.github.com/users/ooluwadiya/gists{/gist_id}","starred_url":"https://api.github.com/users/ooluwadiya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ooluwadiya/subscriptions","organizations_url":"https://api.github.com/users/ooluwadiya/orgs","repos_url":"https://api.github.com/users/ooluwadiya/repos","events_url":"https://api.github.com/users/ooluwadiya/events{/privacy}","received_events_url":"https://api.github.com/users/ooluwadiya/received_events","type":"User","site_admin":false},"created_at":"2016-05-20T12:03:49Z","updated_at":"2016-05-20T12:03:49Z","body":"The same issue occurs with installation from .tgz archive files e.g. https://<hostname>:<port>/<path>/addon-1.2.3.tgz"}}
{"actor":{"display_login":"ooluwadiya"}}