{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/7562","labels_url":"https://api.github.com/repos/npm/npm/issues/7562/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/7562/comments","events_url":"https://api.github.com/repos/npm/npm/issues/7562/events","html_url":"https://github.com/npm/npm/issues/7562","id":60153428,"number":7562,"title":"(bug) npm self update actually uninstalled npm","user":{"login":"fredgalvao","id":616464,"avatar_url":"https://avatars.githubusercontent.com/u/616464?v=3","gravatar_id":"","url":"https://api.github.com/users/fredgalvao","html_url":"https://github.com/fredgalvao","followers_url":"https://api.github.com/users/fredgalvao/followers","following_url":"https://api.github.com/users/fredgalvao/following{/other_user}","gists_url":"https://api.github.com/users/fredgalvao/gists{/gist_id}","starred_url":"https://api.github.com/users/fredgalvao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredgalvao/subscriptions","organizations_url":"https://api.github.com/users/fredgalvao/orgs","repos_url":"https://api.github.com/users/fredgalvao/repos","events_url":"https://api.github.com/users/fredgalvao/events{/privacy}","received_events_url":"https://api.github.com/users/fredgalvao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-06T20:20:55Z","updated_at":"2015-03-07T09:56:47Z","closed_at":null,"body":"### This is the PROBLEM\r\n\r\nI went on to update 2 of my global packages today, [npm 2.6.1 to 2.7.0, ripple-emulator 0.9.24 to 0.9.28] using `npm i -g npm ripple-emulator`, and it ended in tears.\r\n\r\n```\r\n$ npm i -g npm ripple-emulator\r\n/home/frederico/local/bin/npm -> /home/frederico/local/lib/node_modules/npm/bin/npm-cli.js\r\n/home/frederico/local/bin/ripple -> /home/frederico/local/lib/node_modules/ripple-emulator/bin/ripple\r\nnpm ERR! Linux 3.11.0-26-generic\r\nnpm ERR! argv \"node\" \"/home/frederico/local/bin/npm\" \"i\" \"-g\" \"npm\" \"ripple-emulator\"\r\nnpm ERR! node v0.10.25\r\nnpm ERR! npm  v2.6.1\r\nnpm ERR! path ../../../lib/node_modules/npm/man/man7/npm-coding-style.7\r\nnpm ERR! code ENOENT\r\nnpm ERR! errno 34\r\n\r\nnpm ERR! enoent ENOENT, symlink '../../../lib/node_modules/npm/man/man7/npm-coding-style.7'\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!     /.../PATH/.../npm-debug.log\r\n```\r\nThe end result is that npm was uninstalled from my system. There is no **npm** folder where it's expected to be:\r\n```\r\n$ npm\r\nbash: /home/frederico/local/bin/npm: No such file or directory\r\n```\r\n```\r\n:~/local/bin$ ls -la\r\ntotal 10924\r\ndrwxr-xr-x 2 frederico frederico     4096 Mar  6 16:27 ./\r\ndrwxr-xr-x 7 frederico frederico     4096 Fev 25 13:37 ../\r\nlrwxrwxrwx 1 frederico frederico       39 Mar  3 14:05 cordova -> ../lib/node_modules/cordova/bin/cordova*\r\nlrwxrwxrwx 1 frederico frederico       36 Fev 10 15:55 gulp -> ../lib/node_modules/gulp/bin/gulp.js*\r\n-rwxr-xr-x 1 frederico frederico 11174429 Jan 28  2014 node*\r\nlrwxrwxrwx 1 frederico frederico       59 Jan 30 08:16 npm-check-updates -> ../lib/node_modules/npm-check-updates/bin/npm-check-updates*\r\nlrwxrwxrwx 1 frederico frederico       46 Mar  6 16:27 ripple -> ../lib/node_modules/ripple-emulator/bin/ripple*\r\n```\r\n```\r\n:~/local/lib/node_modules$ ls -la\r\ntotal 24\r\ndrwxr-xr-x 6 frederico frederico 4096 Mar  6 16:39 .\r\ndrwxr-xr-x 4 frederico frederico 4096 Jan 28  2014 ..\r\ndrwxr-xr-x 7 frederico frederico 4096 Mar  3 14:04 cordova\r\ndrwxr-xr-x 6 frederico frederico 4096 Fev 10 15:55 gulp\r\ndrwxr-xr-x 6 frederico frederico 4096 Jan 30 08:15 npm-check-updates\r\ndrwxr-xr-x 8 frederico frederico 4096 Mar  6 16:27 ripple-emulator\r\n```\r\n\r\nThe mentioned **npm-debug.log** is attached on these 2 pastebins:\r\nhttp://pastebin.com/RSkB5TM9\r\nhttp://pastebin.com/UgdRArMn\r\n\r\n### This is my ENVIRONMENT\r\n\r\n```\r\n$ lsb_release -a\r\nNo LSB modules are available.\r\nDistributor ID:\tUbuntu\r\nDescription:\tUbuntu 13.10\r\nRelease:\t13.10\r\nCodename:\tsaucy\r\n```\r\n```\r\n$ uname -a\r\nLinux frederico 3.11.0-26-generic #45-Ubuntu SMP Tue Jul 15 04:02:06 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux\r\n```\r\n```\r\nnode -v\r\nv0.10.25\r\n```\r\n\r\n### And this is how I FIXED IT\r\n\r\n```\r\n$ curl -L https://www.npmjs.org/install.sh | sh\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n100    51  100    51    0     0     59      0 --:--:-- --:--:-- --:--:--    59\r\n100  6239  100  6239    0     0   2936      0  0:00:02  0:00:02 --:--:--  5463\r\ntar=/bin/tar\r\nversion:\r\ntar (GNU tar) 1.26\r\nCopyright (C) 2011 Free Software Foundation, Inc.\r\nLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.\r\nThis is free software: you are free to change and redistribute it.\r\nThere is NO WARRANTY, to the extent permitted by law.\r\n\r\nWritten by John Gilmore and Jay Fenlason.\r\ninstall npm@latest\r\nfetching: http://registry.npmjs.org/npm/-/npm-2.7.0.tgz\r\n \r\n> npm@2.7.0 prepublish /tmp/npm.8264/package\r\n> node bin/npm-cli.js prune --prefix=. --no-global && rm -rf test/*/*/node_modules && make -j8 doc\r\n\r\nmake: Nothing to be done for `doc'.\r\n/home/frederico/local/bin/npm -> /home/frederico/local/lib/node_modules/npm/bin/npm-cli.js\r\nnpm@2.7.0 /home/frederico/local/lib/node_modules/npm\r\nIt worked\r\n```\r\n```\r\n$ npm -v\r\n2.7.0\r\n```\r\n\r\nPS: My node+npm installation was made from [this gist](https://gist.github.com/fredgalvao/2627656#file-install-sh-L174-L184) I made, which was based on [isaacs](https://gist.github.com/isaacs/579814)."},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/77682116","html_url":"https://github.com/npm/npm/issues/7562#issuecomment-77682116","issue_url":"https://api.github.com/repos/npm/npm/issues/7562","id":77682116,"user":{"login":"KidkArolis","id":324440,"avatar_url":"https://avatars.githubusercontent.com/u/324440?v=3","gravatar_id":"","url":"https://api.github.com/users/KidkArolis","html_url":"https://github.com/KidkArolis","followers_url":"https://api.github.com/users/KidkArolis/followers","following_url":"https://api.github.com/users/KidkArolis/following{/other_user}","gists_url":"https://api.github.com/users/KidkArolis/gists{/gist_id}","starred_url":"https://api.github.com/users/KidkArolis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KidkArolis/subscriptions","organizations_url":"https://api.github.com/users/KidkArolis/orgs","repos_url":"https://api.github.com/users/KidkArolis/repos","events_url":"https://api.github.com/users/KidkArolis/events{/privacy}","received_events_url":"https://api.github.com/users/KidkArolis/received_events","type":"User","site_admin":false},"created_at":"2015-03-07T09:56:47Z","updated_at":"2015-03-07T09:56:47Z","body":"This issue is already being discussed here https://github.com/npm/npm/issues/7510"}}