I've tried to install @angular/[email protected] (npm install -g @angular/cli)
Then the following error message appeared:
npm ERR! Response timeout while trying to fetch http://registry.npmjs.org/@angular-devkit%2fschematics (over 30000ms)
npm ERR! A complete log of this run can be found in: npm ERR!
C:\NODEJS\npm-cache_logs\2020-06-16T12_37_01_005Z-debug.log
These solutions I've tried but not work:
- uninstall nodejs, delete all nodejs files related it and trying install nodejs versions(8,10,12).
- uninstall angular(npm uninstall -g @angular/cli)
- npm install --save-dev @angular-devkit/build-angular
- npm cache clean --force
- npm install -g @angular/cli --timeout=60000
npm config set registry http://registry.npmjs.org/
Tip:the problem appeared when I tried update angular 8 to angular 9.