将角度从版本5降级到版本4 [英] Angular downgrade from version 5 to 4

查看:72
本文介绍了将角度从版本5降级到版本4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建4号角项目而不是5号角项目. 我的角度cli版本1.5.0 当我运行此命令将版本降级到angular cli 4

i want to create angular 4 project instead of 5. my angular cli version 1.5.0 when i run this command to downgrade the version to angular cli 4

npm install -g angular-cli@1.4.9

我得到了错误

npm ERR! code ETARGET
npm ERR! notarget No matching version found for angular-cli@1.4.9

推荐答案

如果要安装此特定版本的cli,则必须使用以下命令:

If you want to install this specific version of the angular cli you have to use this command:

npm install -g @angular/cli@1.4.9

也许您当前在系统上安装了另一个版本,您应该阅读也.

Perhaps you have another version currently installed on your system you should read this also.

这篇关于将角度从版本5降级到版本4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆