参考无法将 Angular 从版本 6 降级到版本 5 https://stackoverflow.com/questions/50268300/unable-to-downgrade-angular-from-version-6-to-5
我尝试使用相同的方法npm uninstall -g @angular/cli
npm cache clean --force
npm install -g @angular/[email protected] /cdn-cgi/l/email-protection
我想将当前版本的 Angular 11 降级为 Angular 9,但是当我运行时ng --version
我还在 Angular 11
尝试这个:
npm uninstall -g @angular/cli
npm cache clean
npm install -g @angular/[email protected] /cdn-cgi/l/email-protection
如果抛出 npm 错误,请在安装之前尝试更新 npm:
npm i npm@latest -g
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)