Problem with npm install… npm ERR! code E400


Firstly I installed the latest version of angular cli. Then when I tried to downgrade to 7.3.3 there was an error: 400 Bad Request – GET Also I can not install anything with npm install like node-sass etc. So I unistalled nodejs and tried to install again angular cli, but the same error appeared. Maybe I have changed any configuration.

C:Windowssystem32>node -v

C:Windowssystem32>npm install -g @angular/cli
npm ERR! code E400
npm ERR! 400 Bad Request – GET

npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersXXXXAppDataRoamingnpm-cache_logs2020-06-01T10_49_37_560Z-debug.log


0 info it worked if it ends with ok
1 verbose cli [
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'
1 verbose cli ]
2 info using npmdeepak kumar.14.4
3 info using node@v12.17.0
4 verbose npm-session bc2383db262e35f5
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 400 506ms
8 silly fetchPackageMetaData error for @angular/cli@latest 400 Bad Request - GET
9 timing stage:rollbackFailedOptional Completed in 1ms
10 timing stage:runTopLevelLifecycles Completed in 543ms
11 verbose stack Error: 400 Bad Request - GET
11 verbose stack at C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-registry-fetchcheck-response.js:104:15
11 verbose stack at processTicksAndRejections (internal/process/task_queues.js:97:5)
12 verbose statusCode 400
13 verbose pkgid @angular/cli@latest
14 verbose cwd C:Windowssystem32
15 verbose Windows_NT 10.0.17763
16 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "@angular/cli"
17 verbose node v12.17.0
18 verbose npm v6.14.4
19 error code E400
20 error 400 Bad Request - GET
21 verbose exit [ 1, true ]



pawan 1 month 0 Answers 20 views 0

Leave an answer