Angular CLI不会创建新项目 [英] Angular CLI wont create new project

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

问题描述

我正在尝试通过angular cli创建一个项目(名为ngadmin),但是它在以下命令上抛出错误:ng new ngadmin.错误是:

I am trying to create a project (named ngadmin) via the angular cli but it throws errors on this command: ng new ngadmin. The errors are:

fs:不支持重新评估本机模块源.如果你是 使用graceful-fs模块,请将其更新至最新版本 版本.

fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.

您不能在angular-cli项目中使用新命令.

You cannot use the new command inside an angular-cli project.

我不确定是什么问题,因为几天前cli对我来说工作正常.

I am not sure what the problem is as this cli was working fine for me a few days ago.

推荐答案

如果使用Linux,请回家删除package.json.

If using Linux, go to home and delete package.json.

这篇关于Angular CLI不会创建新项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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