question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

invalid name: "@angular/common"

See original GitHub issue
➜  AngularJS2 git:(master) ✗ sudo npm install
Password:
npm ERR! Darwin 15.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v5.10.1
npm ERR! npm  v3.8.3

npm ERR! Invalid name: "@angular/common"
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!     /Users/Austin/Projects/AngularJS2/npm-debug.log

npm-debug.log.zip

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Olgagrcommented, May 29, 2016

After some digging into the problem, I found this discussion in angular repo: https://github.com/angular/angular/issues/8464. It seems like upgrading npm version should help.

0reactions
gorohorohcommented, Mar 29, 2017

@moonmaster9000 Updating npm to latest (4.5.0) helped in my case.

Read more comments on GitHub >

github_iconTop Results From Across the Web

invalid name @angular/common : npm - Stack Overflow
try this command npm install -g npm.
Read more >
Installation problem - invalid packages names #2187 - GitHub
Mac OSX El Capitan Node 5.2.0, 6.0.0., 6.6.0 I'm trying to install the latest version of angular-cli: npm uninstall -g angular-cli npm cache ......
Read more >
Top 5 @angular/common Code Examples - Snyk
Learn more about how to use @angular/common, based on @angular/common code ... reset the invalid state this.invalid = false; // check if the...
Read more >
i can&#039;t install angular version
I am trying to install the version of angular pro but I can't install it. Resources (screenshots, code snippets etc.)
Read more >
Why Installation of a new module show 'npm ... - Ionic Forum
Invalid package name "@angular/common/http": name can only contain ... by changing “@angular/common/http”: “4.3.0”, instead of “@angular/http”: “4.0.0”,.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found