New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot install via npm #4276
Comments
@KlausEichinger What exactly are you trying to do ? |
Hi. Can you please provide the command line? Also, have you tried to add sudo at the beginning of your command line? Please let us know. Cheers...! |
I'd also suggest updating npm. |
Thank you for you interest. I tried to install a new angular project via angular-cli. In Terminal I called 'sudo npm install -g angular-cli'. Like it is recommended on cli.angular.io. This attempt failed several times with error message as written above. My MacOS, Node and npm are up to date as you can see above. |
Lieber Klaus Du musst schon mehr herausrücken. Du kannst mal damit anfangen, dass Du genau angibst, was Du genau wo eintippst. Wie hast Du z.B. nodeJS installiert, das fehlt komplett. Also, der Ball ist bei Dir. Ich verwende i.Ü. ebenfalls macOS Sierra 10.12.2, nodeJS 7.4.0 und npm 4.1.2. |
If you search for the error "Cannot find module 'github-url-from-git'", there are plenty of hits, such as nodejs/node#3540. Most of the hits suggest to get rid of your node installation, and re-install nodeJS. Is that an option for you ? Your installation seems to be broken. |
Hallo lieber @catull, ich arbeite nicht erst seit heute früh als Entwickler. Was verstehst nicht du nicht daran, dass ich ein Angular(2) Projekt aufsetzen möchte? Dazu möchte ich angular-cli nutzen. Mit Node und npm arbeite ich auch schon etwas länger ;) Wie du aus dem von npm erzeugten und oben zitierten Protokll ersehen kannst, sind alle Komponenten auf neuestem Stand. Wenn du also etwas konkret wissen möchtest, stelle bitte auch konkrete Fragen. @GuriSoft the command line output is Last login: Sun Jan 29 19:42:23 on ttys000 npm ERR! Cannot find module 'github-url-from-git' npm ERR! Please include the following file with any support request: |
What happens if you re-install ng CLI ? sudo npm uninstall -g angular-cli
sudo npm cache clean
sudo npm install -g angular-cli Same error ? |
Do you have node modules in /usr/local/lib/node_modules, as well as in /Users/klaus/.npm ?? |
On my office mac I'd installed angular-cli successful two weeks ago. But I can't find any differences in the settings. |
I don't think npm is the problem. I can install other components like bootstrap via npm. |
Have you thought of giving yarn a chance ? |
Not yet. I try to combine angular w/ react, because of a better rendering from react components. My experiences w/ npm are throughout positive. |
Actually, yarn is a different node package manager/installer. Once installed, you can do this: sudo yarn global add angular-cli@latest It works super-fast. Can you try this ? |
I just tried to install Yarn. Sounds fine. But npm failed!
npm ERR! Cannot find module 'github-url-from-git' npm ERR! Please include the following file with any support request: I will go up and clean up my Mac manually tomorrow. |
You see, about the same problem, to do with "Cannot find module 'github-url-from-git'" |
On my Mac, this is what I get with npm -g list github-url-from-git
Very suspicious, npm version 2.15.9 !!! |
|
|
I am afraid, a clean-up is a MUST now. |
I will do the clean-up and report. Thank for supporting |
Gern geschehen. |
|
I am glad it is working for you now. By the way, the link is better rendered this way: helpful link, you added an extra '(' in front. You could have added an extra ')' at the end and it would have been correctly rendered, too. You can see the textual effect of your comment by switching between the "Write" and "Preview" tab, before you submit it. After the fact, you can always go back and choose the "pen" symbol to edit a comment you wrote. |
Glad you were able to find a solution to your issue, closing. |
npm ERR! Please include the following file with any support request: can you help me out how to solve this problem |
when i amtrying to run angular4 with command npm-serve,it is showing the following error? Specify configs in the ini-formatted file: |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
MacOS Sierra, node@v7.4.0, npm@4.0.5
I posted this issue also at npm …
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli 'angular-cli' ]
2 info using npm@4.0.5
3 info using node@v7.4.0
4 verbose stack Error: Cannot find module 'github-url-from-git'
4 verbose stack at Function.Module._resolveFilename (module.js:470:15)
4 verbose stack at Function.Module._load (module.js:418:25)
4 verbose stack at Module.require (module.js:498:17)
4 verbose stack at require (internal/module.js:20:19)
4 verbose stack at Object. (/usr/local/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/fixer.js:2:22)
4 verbose stack at Module._compile (module.js:571:32)
4 verbose stack at Object.Module._extensions..js (module.js:580:10)
4 verbose stack at Module.load (module.js:488:32)
4 verbose stack at tryModuleLoad (module.js:447:12)
4 verbose stack at Function.Module._load (module.js:439:3)
5 verbose cwd /Users/klaus
6 error Darwin 16.4.0
7 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "angular-cli"
8 error node v7.4.0
9 error npm v4.0.5
10 error code MODULE_NOT_FOUND
11 error Cannot find module 'github-url-from-git'
12 error If you need help, you may report this error at:
12 error https://github.com/npm/npm/issues
13 verbose exit [ 1, true ]
The text was updated successfully, but these errors were encountered: