Angular CLI 目前需要 npm 版本 6 [英] The Angular CLI currently requires npm version 6

查看:30
本文介绍了Angular CLI 目前需要 npm 版本 6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 angular ng new 命令来创建一个应用程序.

I am using angular ng new command to create a application.

ng new angular-hello-world.

ng new angular-hello-world.

出现以下错误.检测到 npm 版本 7.5.1.Angular CLI 目前需要 npm 版本 6.

got below error. npm version 7.5.1 detected. The Angular CLI currently requires npm version 6.

请安装兼容版本以继续(npm install --global npm@6).

Please install a compatible version to proceed (npm install --global npm@6).

知道它是什么吗?为什么需要安装 npm@6

any idea what it is ? why need to install npm@6

推荐答案

试试这个

npm install --global npm@6

这篇关于Angular CLI 目前需要 npm 版本 6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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