{"action":"opened","issue":{"url":"https://api.github.com/repos/ember-cli/ember-cli/issues/3813","labels_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/3813/labels{/name}","comments_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/3813/comments","events_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/3813/events","html_url":"https://github.com/ember-cli/ember-cli/issues/3813","id":66617730,"number":3813,"title":"`ember update` doesn't roll back to previous version on failure","user":{"login":"tlantz","id":109215,"avatar_url":"https://avatars.githubusercontent.com/u/109215?v=3","gravatar_id":"","url":"https://api.github.com/users/tlantz","html_url":"https://github.com/tlantz","followers_url":"https://api.github.com/users/tlantz/followers","following_url":"https://api.github.com/users/tlantz/following{/other_user}","gists_url":"https://api.github.com/users/tlantz/gists{/gist_id}","starred_url":"https://api.github.com/users/tlantz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlantz/subscriptions","organizations_url":"https://api.github.com/users/tlantz/orgs","repos_url":"https://api.github.com/users/tlantz/repos","events_url":"https://api.github.com/users/tlantz/events{/privacy}","received_events_url":"https://api.github.com/users/tlantz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-06T14:33:25Z","updated_at":"2015-04-06T14:33:25Z","closed_at":null,"body":"Here are the steps to reproduce (on OSX):\r\n\r\n- Install ember-cli as sudo\r\n- Later run ember update when a new version is available without sudo\r\n- This should error with an access violation\r\n\r\n    Error: EACCES, unlink '/usr/local/lib/node_modules/ember-cli'\r\n        at Error (native)\r\n\r\nExpected: I can rerun sudo ember update using the last version of ember cli installed. \r\nActual: ember is no longer installed at all. \r\n\r\n    $ ember\r\n    -bash: /usr/local/bin/ember: No such file or directory"}}