Angular-cli: Unable to install angular-cli from npm registry

Created on 17 Mar 2017  路  10Comments  路  Source: angular/angular-cli

Hi Team,

We are trying to install angular-cli using below command:
./node npm install -g angular-cli

but we are getting below errors:
npm ERR! registry error parsing json
npm ERR! Unexpected token < in JSON at position 0
npm ERR!

The requested URL /content/groups/NPM_All/@angular-cli/ast-tools was not found on this server.

registry used: http://registry.npmjs.org/
node version: 6.10.0
npm version: 3.10.10
package downloaded: node-v6.10.0-linux-x64.tar.xz
Server Details: Red Hat Enterprise Linux Server release 6.5 (Santiago)

Also tried npm clean cache but didn't work
Also tried to install through below command:
./node npm install -g @angular/cli
getting error:
npm ERR! 404 Not Found
npm ERR!

npm ERR! Not Found

npm ERR!

The requested URL /content/groups/NPM_All/@angular/cli was not found on this server.


npm ERR!

PS: We are using Nexus for proxy registry setup

Kindly suggest us.

Most helpful comment

I've found solution:

I'm using private npm repository at bintray. So i had to provide credentials for it and these credentials were written in npm config. I removed auth section in it and now it works

run this command and edit: npm config edit

All 10 comments

The correct package is '@angular/cli'.
Your proxy may be blocking scoped packages.

Closing as answered by @clydin, thanks!

Hi @clydin / @filipesilva
Thanks for your response..!
I used correct package '@angular/cli'

Yes may be proxy is blocking so is there any other registry where I can download the dependencies
Or any other way I can install @angular/cli ?

I don't think there's any other way besides npm :/

I'm using Nexus proxy repository to access registry: http://registry.npmjs.org/

On My browser I'm hitting URL(http://registry.npmjs.org/@angular/cli) to access package '@angular/cli' it is giving me output {"error":"Not found"}

while URL(http://registry.npmjs.org/angular-cli) to access package 'angular-cli' giving me proper output.

I guess '@angular-cli' doesn't exist over registry:http://registry.npmjs.org/ while 'angular-cli' exist.
Am I wrong ?

I don't know how the registry resolves scoped package names (the ones @something/something) but I know it's available on npm: https://www.npmjs.com/package/@angular/cli.

This works for instance: https://registry.npmjs.org/@angular/core/-/core-2.4.9.tgz

Also make sure you're using at least npm 3 or more and your registry supports scoped packages.

I have the same issue. I can't install it on my mac

Aleksandrs-Mini:~ aleksandr$ npm install @angular/cli -g --registry https://registry.npmjs.org
npm ERR! Darwin 16.7.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "@angular/cli" "-g" "--registry" "https://registry.npmjs.org"
npm ERR! node v6.11.2
npm ERR! npm v3.10.10
npm ERR! code E404

npm ERR! 404 User not found : @angular/cli
npm ERR! 404
npm ERR! 404 '@angular/cli' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url

I've found solution:

I'm using private npm repository at bintray. So i had to provide credentials for it and these credentials were written in npm config. I removed auth section in it and now it works

run this command and edit: npm config edit

Getting rid of the auth section in my npm config edit worked.

Thanks @kondaurovDev

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._

Was this page helpful?
0 / 5 - 0 ratings