Skip to content

npm install -g @angular/cli ERROR #5818

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

Closed
danipi79 opened this issue Apr 4, 2017 · 4 comments
Closed

npm install -g @angular/cli ERROR #5818

danipi79 opened this issue Apr 4, 2017 · 4 comments

Comments

@danipi79
Copy link

danipi79 commented Apr 4, 2017

Bug Report or Feature Request (mark with an x)

- [X] bug report -> please search issues before submitting
- [ ] feature request

Versions.

Last version

Repro steps.

image

npm install -g @angular/cli
npm ERR! registry error parsing json
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "@angular/cli"
npm ERR! node v6.9.2
npm ERR! npm v3.10.9

npm ERR! Unexpected token < in JSON at position 0
npm ERR!
npm ERR!
npm ERR! <title>404 - Path /@angular/cli not found in group repository "npm-group-repo" [id=npm-group-repo].</title>
npm ERR!
npm ERR!
npm ERR!
npm ERR!
npm ERR!
npm ERR!
npm ERR!
npm ERR!
npm ERR!

404 - Path /@angular/cli not found in group repository "npm-group-repo" [id=npm-group-repo].


npm ERR!

Path /@angular/cli not found in group repository "npm-group-repo" [id=npm-group-repo].


npm ERR!
npm ERR!
npm ERR!
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! C:\Users\0012416\npm-debug.log

The log given by the failure.

0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli '@angular/cli' ]
2 info using npm@3.10.9
3 info using node@v6.9.2
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 silly fetchPackageMetaData @angular/cli
8 silly fetchNamedPackageData @angular/cli
9 silly mapToRegistry name @angular/cli
10 silly mapToRegistry scope (from package name) @angular
11 verbose mapToRegistry no registry URL found in name for scope @angular
12 silly mapToRegistry using default registry
13 silly mapToRegistry registry http://10.113.52.95:8081/nexus/content/groups/npm-group-repo/
14 silly mapToRegistry data Result {
14 silly mapToRegistry raw: '@angular/cli',
14 silly mapToRegistry scope: '@angular',
14 silly mapToRegistry escapedName: '@angular%2fcli',
14 silly mapToRegistry name: '@angular/cli',
14 silly mapToRegistry rawSpec: '',
14 silly mapToRegistry spec: 'latest',
14 silly mapToRegistry type: 'tag' }
15 silly mapToRegistry uri http://10.113.52.95:8081/nexus/content/groups/npm-group-repo/@angular%2fcli
16 verbose request uri http://10.113.52.95:8081/nexus/content/groups/npm-group-repo/@angular%2fcli
17 verbose request no auth needed
18 info attempt registry request try #1 at 10:03:42
19 verbose request id 5033ba8961c0aa6e
20 http request GET http://10.113.52.95:8081/nexus/content/groups/npm-group-repo/@angular%2fcli
21 http 404 http://10.113.52.95:8081/nexus/content/groups/npm-group-repo/@angular%2fcli
22 verbose bad json
22 verbose bad json
22 verbose bad json <title>404 - Path /@angular/cli not found in group repository "npm-group-repo" [id=npm-group-repo].</title>
22 verbose bad json
22 verbose bad json
22 verbose bad json
22 verbose bad json
22 verbose bad json
22 verbose bad json
22 verbose bad json
22 verbose bad json
22 verbose bad json

404 - Path /@angular/cli not found in group repository "npm-group-repo" [id=npm-group-repo].


22 verbose bad json

Path /@angular/cli not found in group repository "npm-group-repo" [id=npm-group-repo].


22 verbose bad json
22 verbose bad json
23 error registry error parsing json
24 verbose headers { date: 'Tue, 04 Apr 2017 08:03:42 GMT',
24 verbose headers server: 'Nexus/2.12.0-01',
24 verbose headers 'x-frame-options': 'SAMEORIGIN',
24 verbose headers 'x-content-type-options': 'nosniff',
24 verbose headers 'accept-ranges': 'bytes',
24 verbose headers 'content-type': 'text/html',
24 verbose headers 'transfer-encoding': 'chunked' }
25 silly get cb [ 404,
25 silly get { date: 'Tue, 04 Apr 2017 08:03:42 GMT',
25 silly get server: 'Nexus/2.12.0-01',
25 silly get 'x-frame-options': 'SAMEORIGIN',
25 silly get 'x-content-type-options': 'nosniff',
25 silly get 'accept-ranges': 'bytes',
25 silly get 'content-type': 'text/html',
25 silly get 'transfer-encoding': 'chunked' } ]
26 silly fetchPackageMetaData SyntaxError: Unexpected token < in JSON at position 0
26 silly fetchPackageMetaData
26 silly fetchPackageMetaData
26 silly fetchPackageMetaData <title>404 - Path /@angular/cli not found in group repository "npm-group-repo" [id=npm-group-repo].</title>
26 silly fetchPackageMetaData
26 silly fetchPackageMetaData
26 silly fetchPackageMetaData
26 silly fetchPackageMetaData
26 silly fetchPackageMetaData
26 silly fetchPackageMetaData
26 silly fetchPackageMetaData
26 silly fetchPackageMetaData
26 silly fetchPackageMetaData

404 - Path /@angular/cli not found in group repository "npm-group-repo" [id=npm-group-repo].


26 silly fetchPackageMetaData

Path /@angular/cli not found in group repository "npm-group-repo" [id=npm-group-repo].


26 silly fetchPackageMetaData
26 silly fetchPackageMetaData
26 silly fetchPackageMetaData
26 silly fetchPackageMetaData at Object.parse (native)
26 silly fetchPackageMetaData at CachingRegistryClient. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:237:23)
26 silly fetchPackageMetaData at Request._callback (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:210:14)
26 silly fetchPackageMetaData at Request.self.callback (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:187:22)
26 silly fetchPackageMetaData at emitTwo (events.js:106:13)
26 silly fetchPackageMetaData at Request.emit (events.js:191:7)
26 silly fetchPackageMetaData at Request. (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:1048:10)
26 silly fetchPackageMetaData at emitOne (events.js:96:13)
26 silly fetchPackageMetaData at Request.emit (events.js:188:7)
26 silly fetchPackageMetaData at IncomingMessage. (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:969:12)
26 silly fetchPackageMetaData error for @angular/cli SyntaxError: Unexpected token < in JSON at position 0
26 silly fetchPackageMetaData
26 silly fetchPackageMetaData
26 silly fetchPackageMetaData <title>404 - Path /@angular/cli not found in group repository "npm-group-repo" [id=npm-group-repo].</title>
26 silly fetchPackageMetaData
26 silly fetchPackageMetaData
26 silly fetchPackageMetaData
26 silly fetchPackageMetaData
26 silly fetchPackageMetaData
26 silly fetchPackageMetaData
26 silly fetchPackageMetaData
26 silly fetchPackageMetaData
26 silly fetchPackageMetaData

404 - Path /@angular/cli not found in group repository "npm-group-repo" [id=npm-group-repo].


26 silly fetchPackageMetaData

Path /@angular/cli not found in group repository "npm-group-repo" [id=npm-group-repo].


26 silly fetchPackageMetaData
26 silly fetchPackageMetaData
26 silly fetchPackageMetaData
26 silly fetchPackageMetaData at Object.parse (native)
26 silly fetchPackageMetaData at CachingRegistryClient. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:237:23)
26 silly fetchPackageMetaData at Request._callback (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:210:14)
26 silly fetchPackageMetaData at Request.self.callback (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:187:22)
26 silly fetchPackageMetaData at emitTwo (events.js:106:13)
26 silly fetchPackageMetaData at Request.emit (events.js:191:7)
26 silly fetchPackageMetaData at Request. (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:1048:10)
26 silly fetchPackageMetaData at emitOne (events.js:96:13)
26 silly fetchPackageMetaData at Request.emit (events.js:188:7)
26 silly fetchPackageMetaData at IncomingMessage. (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:969:12)
27 silly rollbackFailedOptional Starting
28 silly rollbackFailedOptional Finishing
29 silly runTopLevelLifecycles Finishing
30 silly install printInstalled
31 verbose stack SyntaxError: Unexpected token < in JSON at position 0
31 verbose stack
31 verbose stack
31 verbose stack <title>404 - Path /@angular/cli not found in group repository "npm-group-repo" [id=npm-group-repo].</title>
31 verbose stack
31 verbose stack
31 verbose stack
31 verbose stack
31 verbose stack
31 verbose stack
31 verbose stack
31 verbose stack
31 verbose stack

404 - Path /@angular/cli not found in group repository "npm-group-repo" [id=npm-group-repo].


31 verbose stack

Path /@angular/cli not found in group repository "npm-group-repo" [id=npm-group-repo].


31 verbose stack
31 verbose stack
31 verbose stack
31 verbose stack at Object.parse (native)
31 verbose stack at CachingRegistryClient. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:237:23)
31 verbose stack at Request._callback (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:210:14)
31 verbose stack at Request.self.callback (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:187:22)
31 verbose stack at emitTwo (events.js:106:13)
31 verbose stack at Request.emit (events.js:191:7)
31 verbose stack at Request. (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:1048:10)
31 verbose stack at emitOne (events.js:96:13)
31 verbose stack at Request.emit (events.js:188:7)
31 verbose stack at IncomingMessage. (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:969:12)
32 verbose cwd C:\Users\0012416
33 error Windows_NT 6.1.7601
34 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "@angular/cli"
35 error node v6.9.2
36 error npm v3.10.9
37 error Unexpected token < in JSON at position 0
37 error
37 error
37 error <title>404 - Path /@angular/cli not found in group repository "npm-group-repo" [id=npm-group-repo].</title>
37 error
37 error
37 error
37 error
37 error
37 error
37 error
37 error
37 error

404 - Path /@angular/cli not found in group repository "npm-group-repo" [id=npm-group-repo].


37 error

Path /@angular/cli not found in group repository "npm-group-repo" [id=npm-group-repo].


37 error
37 error
38 error If you need help, you may report this error at:
38 error https://github.com/npm/npm/issues
39 verbose exit [ 1, true ]

Desired functionality.

Install @Angular/cli

Mention any other details that might be useful.

@starquake
Copy link

Do you have a company proxy or something?

Firstly, it's trying to download from a LAN ip address, and not the internet:
10.113.52.95
Secondly it's trying to download from a non-standard port:
8081

@starquake
Copy link

Also I see Nexus and Sonatype in the error message. A quick google and I found this...
https://www.sonatype.com/nexus-repository-sonatype

I think you are having problems with Sonatype...

@filipesilva
Copy link
Contributor

As @starquake says this seems related to your npm proxy, perhaps it doesn't not support scoped packages.

I'm sorry, but this issue is not caused by Angular CLI. Please contact the author(s) of project Sonatype or file issue on their issue tracker.

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants