Angular-cli 升级最新版本

npm uninstall -g @angular/cli
npm cache verify
npm install -g @angular/cli

(base) yanghaoyuan@192 ~ % npm uninstall -g @angular/cli
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

removed 206 packages, and audited 1 package in 3s

found 0 vulnerabilities
(base) yanghaoyuan@192 ~ % ng
zsh: command not found: ng
(base) yanghaoyuan@192 ~ % npm cache verify
Cache verified and compressed (~/.npm/_cacache)
Content verified: 3848 (256180066 bytes)
Content garbage-collected: 374 (93301073 bytes)
Index entries: 3923
Finished in 21.315s
(base) yanghaoyuan@192 ~ % npm install -g @angular/cli
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

added 206 packages in 8s
(base) yanghaoyuan@192 ~ % ng version

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 14.1.3
Node: 16.15.1
Package Manager: npm 8.11.0 
OS: darwin x64

Angular: undefined
... 

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.1401.3 (cli-only)
@angular-devkit/core         14.1.3 (cli-only)
@angular-devkit/schematics   14.1.3 (cli-only)
@schematics/angular          14.1.3 (cli-only)

你可能感兴趣的:(Nodejs,Angular|RxJS,Bootstrap,angular.js,前端,javascript)