You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing github-url-from-git from npm@3 in Node v5 RC1 #3540
If you have this issue, please run sudo rm -rf /usr/local/lib/node_modules/ and try installing again. ~Fishrock123
Just released v5.0.0 RC 1 and npm is borked:
$ npm i bl
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "bl"
npm ERR! node v5.0.0-rc.1
npm ERR! npm v3.3.6
npm ERR! code MODULE_NOT_FOUND
npm ERR! Cannot find module 'github-url-from-git'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /private/tmp/npm-debug.log
$ grep -R github-url-from-git /usr/local/lib/node_modules/npm
/usr/local/lib/node_modules/npm/CHANGELOG.md: `github-url-from-git@1.4.0`: add support for git+https and git+ssh
/usr/local/lib/node_modules/npm/CHANGELOG.md: `github-url-from-git@1.4.0`: add support for git+https and git+ssh
/usr/local/lib/node_modules/npm/CHANGELOG.md: `github-url-from-git@1.2.0` ([@isaacs](https://github.com/isaacs))
/usr/local/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/fixer.js:var parseGitHubURL = require("github-url-from-git")
/usr/local/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/package.json: "github-url-from-git": "^1.3.0",
$ find /usr/local/lib/node_modules/ -name github-url-from-git
$
npm ERR! Cannot find module 'github-url-from-git'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR! /private/tmp/npm-debug.log
$ grep -R github-url-from-git /usr/local/lib/node_modules/npm
/usr/local/lib/node_modules/npm/CHANGELOG.md: github-url-from-git@1.4.0: add support for git+https and git+ssh
/usr/local/lib/node_modules/npm/CHANGELOG.md: github-url-from-git@1.4.0: add support for git+https and git+ssh
/usr/local/lib/node_modules/npm/CHANGELOG.md: github-url-from-git@1.2.0 (@isaacs)
/usr/local/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/fixer.js:var parseGitHubURL = require("github-url-from-git")
/usr/local/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/package.json: "github-url-from-git": "^1.3.0",
$ find /usr/local/lib/node_modules/ -name github-url-from-git
$
/cc @iarna@Fishrock123
—
Reply to this email directly or view it on GitHub.
sudo rm -rf /usr/local/lib/node_modules/ and reinstalling fixed for me, would love an explanation of why I might have been hit with this to know if this might be a general problem with v5.0.0 when goes out? perhaps a particular upgrade path (I'm experimenting with different options now)
Reacted by Kirk Bushell, trashboat182, Henrique, Zhenyang Hua, Anton Pashchenko, Ian Sadovy, dioufb, Felipe Oliveira, Andrew Motoshin, Prasun and 9 more
I still get this with npm 5.0.0 (not rc) on Windows. Might be some installation issue with the upgrade. I also have moved my npm folder to /dev/npm instead of {APPDATA}/npm and updated npmrc.
See npm/npm#14026 which is the same as this. IMO this bug should be reopened as this is really a Node installer issue, surely (it should remove any existing files before writing new ones).
This is still an issue with v6.11.1 on Mac OSX. I get the "Cannot find module 'github-url-from-git'" error when attempting to do anything with NPM.
I removed /usr/local/lib/npm and ran the installer again, which fixed it. I second re-opening this issue. I was able to solve it quickly (with the help of people here) but there's clearly an issue with the installer.
Activity
Fishrock123 commentedon Oct 27, 2015
So it doesn't exist? I.e not checked in? Can you check if it's in the source?
rvagg commentedon Oct 27, 2015
in core
same as #3494 I suppose
evanlucas commentedon Oct 27, 2015
Is that even a dependency still?
evanlucas commentedon Oct 27, 2015
strange, RC1 works fine for me on OS X
targos commentedon Oct 27, 2015
Is it possible to install it with nvm ? cc @ljharb
ljharb commentedon Oct 27, 2015
@targos sadly I haven't yet had time to finish implementing it. Follow progress at nvm-sh/nvm#779
iarna commentedon Oct 27, 2015
That module isn't used by npm@3 at all (it was supplanted by the more general
hosted-git-info)....I'd love to know what module your
npm-debug.logsays was trying to load it.iarna commentedon Oct 27, 2015
(#3494 is caused by node's
.gitignoreincluding super broad patterns that include files required by npm, so definitely not related.)Fishrock123 commentedon Oct 27, 2015
I am unable to reproduce on windows with a basic setup, and it also seems to work fine for @evanlucas.
@rvagg I think this is on your end.
targos commentedon Oct 27, 2015
I am also unable to reproduce on OSX
rvagg commentedon Oct 27, 2015
sudo rm -rf /usr/local/lib/node_modules/and reinstalling fixed for me, would love an explanation of why I might have been hit with this to know if this might be a general problem with v5.0.0 when goes out? perhaps a particular upgrade path (I'm experimenting with different options now)Fishrock123 commentedon Nov 2, 2015
Maybe related to #3606
jbergens commentedon Nov 12, 2015
I still get this with npm 5.0.0 (not rc) on Windows. Might be some installation issue with the upgrade. I also have moved my npm folder to /dev/npm instead of {APPDATA}/npm and updated npmrc.
8 remaining items
Jameskmonger commentedon Feb 17, 2016
@GregWoods That worked, thanks.
emazzu commentedon Feb 18, 2016
How can I resolve the same problem ???
emazzu commentedon Feb 18, 2016
@Jameskmonger How did you resolve ?
Jameskmonger commentedon Feb 18, 2016
@emazzu
Uninstall
Delete
Program Files\NodeJSReinstall
feross commentedon Mar 24, 2016
This issue still exists when upgrading from Node v4 LTS to Node v5.9.1.
MylesBorins commentedon Mar 24, 2016
@feross I think we should be potentially wiping
/usr/local/lib/node_modules/npmor the windows equivalent in the installer...iarna commentedon Mar 26, 2016
@thealphanerd I agree, if you wipe the bundled npm from the previous version before installing there won't be problems.
kirkbushell commentedon Mar 31, 2016
Doing what @rvagg stated resolved it for me without any issues.
jnatherley commentedon Apr 7, 2016
Currently using 5.0.0 installed via NVM on OSX, I tried deleting node_modules and the one in /usr/lib and reinstalling node, nothing appears to work..
Any ideas? Maybe i've done this the wrong way or i'm missing something obvious.
stevenbeeckman commentedon May 24, 2016
Just installed Node 6.2.0 current on Mac OS X:
Will try to
sudo rm -rf /usr/local/lib/node_modules/npmand reinstall node.** Update **
Running
sudo rm -rf /usr/local/lib/node_modules/npmand then running the Node.js installer again solves this problem.angry-birdman commentedon Jun 1, 2016
Thank you @stevenbeeckman
works
luckynkala commentedon Nov 3, 2016
@GregWoods thanks the below worked for me..
Uninstall
Manually delete residual Program Files/Nodejs folder
Reinstall
praveen262k commentedon Dec 28, 2016
For me
npm clean cachedid the trickherebebeasties commentedon Apr 20, 2017
See npm/npm#14026 which is the same as this. IMO this bug should be reopened as this is really a Node installer issue, surely (it should remove any existing files before writing new ones).
jcicero518 commentedon Aug 1, 2017
This is still an issue with v6.11.1 on Mac OSX. I get the "Cannot find module 'github-url-from-git'" error when attempting to do anything with NPM.
I removed /usr/local/lib/npm and ran the installer again, which fixed it. I second re-opening this issue. I was able to solve it quickly (with the help of people here) but there's clearly an issue with the installer.