Skip to content
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

invalid name: "@angular/common" #95

Closed
theskillwithin opened this issue May 8, 2016 · 6 comments
Closed

invalid name: "@angular/common" #95

theskillwithin opened this issue May 8, 2016 · 6 comments

Comments

@theskillwithin
Copy link

@theskillwithin theskillwithin commented May 8, 2016

➜  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

@wardbell
Copy link
Contributor

@wardbell wardbell commented May 10, 2016

I cannot explain your experience. But there is no doubt that this package exists and is loadable. Closing for lack of information that leads to this result.

@wardbell wardbell closed this May 10, 2016
@Olgagr
Copy link

@Olgagr Olgagr commented May 29, 2016

I get the same error.

Invalid name: "@angular/common"

node 5.2.0
npm 3.3.12

@Olgagr
Copy link

@Olgagr Olgagr commented May 29, 2016

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

@sjatkins
Copy link

@sjatkins sjatkins commented Feb 4, 2017

I just built the latest and get the same exact problem.
npm 4.1.2
node 7.5.0

@moonmaster9000
Copy link

@moonmaster9000 moonmaster9000 commented Mar 23, 2017

I'm getting the same problem.

Here's my package.json:

{
  "name": "foo",
  "version": "0.0.0",
  "dependencies": {
    "@angular/common": "latest"
  }
}

Here's the output from running npm install (includes npm version and node version):

npm ERR! Darwin 15.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v6.10.1
npm ERR! npm  v3.10.10

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/pivotal/workspace/rpsApp/angular2web/npm-debug.log
@gorohoroh
Copy link

@gorohoroh gorohoroh commented Mar 29, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants
You can’t perform that action at this time.