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

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

问题描述

我想创建 angular 4 项目而不是 5.我的 Angular 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

推荐答案

如果你想安装这个特定版本的 angular 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

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

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

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

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