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

command "npm install -g angular-cli" is not working

Open sireendra opened this issue 9 years ago • 4 comments

Hi,

The command "npm install -g angular-cli" is not working for me. I am getting below error. Can anyone help me to solve this.

D:>npm install -g angular-cli npm ERR! Windows_NT 6.3.9600 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! code E404 npm ERR! 404 no such package available : @angular-cli/ast-tools npm ERR! 404 npm ERR! 404 '@angular-cli/ast-tools' 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 It was specified as a dependency of 'angular-cli' npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url. npm ERR! Please include the following file with any support request: npm ERR! D:\npm-debug.log

sireendra avatar Dec 22 '16 13:12 sireendra

Works for me. Clean npm cache and try https://github.com/angular/angular-cli/issues/2150#issuecomment-256257770

CanKattw avatar Dec 22 '16 14:12 CanKattw

My guess is that your environment blocks scoped packages.

clydin avatar Dec 22 '16 15:12 clydin

Yeah what @clydin says is the most probable cause. You're probably using a private npm server or a proxy.

filipesilva avatar Dec 30 '16 17:12 filipesilva

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.