More than one module matches. Use the skip-import option to skip importing the component into the closest module or use the module option to specify a module.
因为项目中有自定义module,和主程序module ,命令不知道给哪个模块安装组件,需要手动指定模块
ng g component componentName --module=模块名字 (主程序是app)