Angular CLI不会创建新项目

前端之家收集整理的这篇文章主要介绍了Angular CLI不会创建新项目前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我试图通过angular cli创建一个项目(名为ngadmin),但它会在这个命令上抛出错误:ng new ngadmin.错误是:

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.

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

我不确定问题是什么,因为这个cli几天前对我来说很好.

解决方法

如果存在package.json和node_module,请检入您的用户名文件夹.如果他们在那里然后删除它们.

注意:您可能已在home / username目录中创建了一个角度项目.如果删除它们就可以了.

猜你在找的Angularjs相关文章