angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Cannot install via npm

Open KlausEichinger opened this issue 9 years ago • 29 comments

MacOS Sierra, [email protected], [email protected]

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 [email protected] 3 info using [email protected] 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 ]

KlausEichinger avatar Jan 29 '17 12:01 KlausEichinger

I am afraid, a clean-up is a MUST now. But, if you successfully install angular-cli after that, please report back.

catull avatar Jan 29 '17 20:01 catull

I will do the clean-up and report. Thank for supporting

KlausEichinger avatar Jan 29 '17 20:01 KlausEichinger

Gern geschehen.

catull avatar Jan 29 '17 20:01 catull

Installed packages for tooling via npm.
Project 'angularreact' successfully created.
Klaus-MacBook-Pro:dev klaus$```

After removing manually all node* occurrences 
([helpful link](http://stackabuse.com/how-to-uninstall-node-js-from-mac-osx/) 
and reinstalling Node – it works

KlausEichinger avatar Jan 29 '17 21:01 KlausEichinger

@KlausEichinger

I am glad it is working for you now. Thanks for letting us know.

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.

catull avatar Jan 29 '17 21:01 catull

Glad you were able to find a solution to your issue, closing.

Brocco avatar Jan 30 '17 07:01 Brocco

npm ERR! Please include the following file with any support request: npm ERR! C:\amulya\angular cli projects\first\npm-debug.log

can you help me out how to solve this problem

amulyaalva avatar Sep 23 '17 05:09 amulyaalva

when i amtrying to run angular4 with command npm-serve,it is showing the following error? how to solve this problem..

Specify configs in the ini-formatted file: C:\Users\Aravind.npmrc or on the command line via: npm --key value Config info can be viewed via: npm help config

amulyaalva avatar Sep 23 '17 05:09 amulyaalva

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.