As you can see, I have version 9 installed regularly.
npm install -g @angular/cli npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 /home/user/.npm-global/bin/ng -> /home/user/.npm-global/lib/node_modules/@angular/cli/bin/ng > @angular/[email protected] postinstall /home/user/.npm-global/lib/node_modules/@angular/cli > node ./bin/postinstall/script.js + @angular/[email protected] updated 1 package in 8.412s ┌─────────────────────────────────────────────────────────┐ │ npm update check failed │ │ Try running with sudo or get access │ │ to the local update config store via │ │ sudo chown -R $USER:$(id -gn $USER) /home/user/.config │ └─────────────────────────────────────────────────────────┘ user@computer:~$ npm list -g /home/user/.npm-global/lib ├─┬ @angular/[email protected] But when ever I create new app with 'ng new app-name' I get version 8 installed. When I check for the version with 'ng --version' it says that v8 is installed.
ng --version Angular CLI: 8.0.3 Node: 12.16.2 OS: linux x64 Angular: ... Package Version ------------------------------------------------------ @angular-devkit/architect 0.800.3 @angular-devkit/core 8.0.3 @angular-devkit/schematics 8.0.3 @schematics/angular 8.0.3 @schematics/update 0.800.3 rxjs 6.4.0 Can anyone help me?
npm uninstall -g @angular/cli. After that cleaning the npm cache:npm cache clean --force. After that install Angular CLI withnpm install -g @angular/cliagain?