I want to downgrade Angular CLI globally as my project is using older version of it

后端 未结 3 1956
误落风尘
误落风尘 2020-12-14 06:59

I have upgraded my Angular CLI globally but my project is using an older version of angular CLI, so I want to downgrade my Angular CLI globally.

相关标签:
3条回答
  • 2020-12-14 07:13

    You can downgrade your global angular-cli installation to eg. 1.0.0-beta.14 by issuing:

    npm uninstall -g angular-cli
    npm cache clean
    npm install -g angular-cli@1.0.0-beta.14
    

    The complete upgrade/downgrade guide is on GitHub README.

    0 讨论(0)
  • 2020-12-14 07:14

    Just for folks seeing this in the future, nowadays angular cli is named @angular/cli on npm, so the new commands to downgrade are these:

    npm uninstall -g @angular/cli
    npm install -g @angular/cli@1.6.8 // or whatever version you need
    
    0 讨论(0)
  • 2020-12-14 07:23
    npm uninstall -g @angular/cli
    npm cache clean
    npm install -g @angular/cli@1.0.0-beta.14
    
    0 讨论(0)
提交回复
热议问题