每当我尝试使用命令angular-cli
创建一个新的ng new my-dream-app
项目时,我都会收到错误:
Error: Could not find an NgModule for the new component. Use the skip-import option to skip importing components in NgModule.
Could not find an NgModule for the new component. Use the skip-import option to skip importing components in NgModule.
我甚至在我找到的地方删除了Nodejs,npm,npm-cache和node_modules文件夹:)
Windows: 10
Nodejs : 8.10.0
npm : 5.6.0
应该注意的是,它一直工作到上个月。
更新
Angular CLI: 1.7.3
Node: 8.10.0
OS: win32 x64
Angular:
...