{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/1190","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/1190/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/1190/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/1190/events","html_url":"https://github.com/angular/angular-cli/issues/1190","id":162101139,"number":1190,"title":"angular-cli installation fails renaming /usr/local/lib/node_modules/.staging/abbrev ","user":{"login":"manuelfink","id":3414822,"avatar_url":"https://avatars.githubusercontent.com/u/3414822?v=3","gravatar_id":"","url":"https://api.github.com/users/manuelfink","html_url":"https://github.com/manuelfink","followers_url":"https://api.github.com/users/manuelfink/followers","following_url":"https://api.github.com/users/manuelfink/following{/other_user}","gists_url":"https://api.github.com/users/manuelfink/gists{/gist_id}","starred_url":"https://api.github.com/users/manuelfink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manuelfink/subscriptions","organizations_url":"https://api.github.com/users/manuelfink/orgs","repos_url":"https://api.github.com/users/manuelfink/repos","events_url":"https://api.github.com/users/manuelfink/events{/privacy}","received_events_url":"https://api.github.com/users/manuelfink/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-24T08:37:35Z","updated_at":"2016-06-24T09:06:05Z","closed_at":null,"body":"## Environment\r\nMac on latest El Capitan\r\nnode v6.2.2 with npm 3.10.2\r\n\r\n\r\n## Repro steps. \r\n\r\n  * trying to upgrading to latest cli tools\r\n  * reintalling node\r\n  * trying to install angular-cli again\r\n  * intallation allways fails\r\n\r\n\r\n## Error\r\n\r\n```\r\n$  sudo npm install -g angular-cli\r\nnpm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue\r\n/usr/local/lib\r\n└── (empty)\r\n\r\nnpm ERR! Darwin 15.5.0\r\nnpm ERR! argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"install\" \"-g\" \"angular-cli\"\r\nnpm ERR! node v6.2.2\r\nnpm ERR! npm  v3.10.2\r\nnpm ERR! path /usr/local/lib/node_modules/.staging/abbrev-432cdd5a\r\nnpm ERR! code ENOENT\r\nnpm ERR! errno -2\r\nnpm ERR! syscall rename\r\n\r\nnpm ERR! enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/.staging/abbrev-432cdd5a' -> '/usr/local/lib/node_modules/angular-cli/node_modules/ember-cli/node_modules/npm/node_modules/abbrev'\r\nnpm ERR! enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/.staging/abbrev-432cdd5a' -> '/usr/local/lib/node_modules/angular-cli/node_modules/ember-cli/node_modules/npm/node_modules/abbrev'\r\nnpm ERR! enoent This is most likely not a problem with npm itself\r\nnpm ERR! enoent and is related to npm not being able to find a file.\r\nnpm ERR! enoent \r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /Users/manuelfink/git/angular-2-cli-test/ContentFlows/npm-debug.log\r\nnpm ERR! code 1\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/228295404","html_url":"https://github.com/angular/angular-cli/issues/1190#issuecomment-228295404","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/1190","id":228295404,"user":{"login":"manuelfink","id":3414822,"avatar_url":"https://avatars.githubusercontent.com/u/3414822?v=3","gravatar_id":"","url":"https://api.github.com/users/manuelfink","html_url":"https://github.com/manuelfink","followers_url":"https://api.github.com/users/manuelfink/followers","following_url":"https://api.github.com/users/manuelfink/following{/other_user}","gists_url":"https://api.github.com/users/manuelfink/gists{/gist_id}","starred_url":"https://api.github.com/users/manuelfink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manuelfink/subscriptions","organizations_url":"https://api.github.com/users/manuelfink/orgs","repos_url":"https://api.github.com/users/manuelfink/repos","events_url":"https://api.github.com/users/manuelfink/events{/privacy}","received_events_url":"https://api.github.com/users/manuelfink/received_events","type":"User","site_admin":false},"created_at":"2016-06-24T09:06:05Z","updated_at":"2016-06-24T09:06:05Z","body":"But somehow its pretty weird, seems angular-cli is somehow breaking node installation.\r\n\r\nManual fix, hope i didn't forget anything:\r\n\r\n````\r\n# uninstalling globally installed libs\r\nsudo npm uninstall -g angular-cli\r\nsudo npm uninstall -g all-other-libraries\r\n\r\n# uninstalling node\r\nsudo rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*}\r\n\r\n# reinstall node\r\n\r\n# update npm to ladest\r\nsudo npm install -g npm\r\n\r\n# reinstall angular-cli\r\nsudo npm install -g angular-cli\r\n```\r\n"}}
{"actor":{"display_login":"manuelfink"}}