大佬教程收集整理的这篇文章主要介绍了angular – Alias已被“–collection”选项使用,不能被“–change-detection”选项使用,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
> Ubuntu 16.04
> Angular CLI 1.7.3
我通过执行生成组件仪表板来获取错误,但是也会发生ng generate c
$ng generate component dashboard The "c" alias is already in use by the "--collection" option and cAnnot be used by the "--change-detection" option. Please use a different alias.
$npm list ... npm ERR! peer dep missing: @angular-devkit/core@0.4.5,required by @scheR_302_11845@atics/angular@0.4.5 npm ERR! peer dep missing: @angular-devkit/scheR_302_11845@atics@0.4.5,required by @scheR_302_11845@atics/angular@0.4.5
它看起来与npm validate别名有关
function angular-cli.command.prototype.validateAlias (option,alias)
但我不确定为什么选择“c”代替“组件”.
以上是大佬教程为你收集整理的angular – Alias已被“–collection”选项使用,不能被“–change-detection”选项使用全部内容,希望文章能够帮你解决angular – Alias已被“–collection”选项使用,不能被“–change-detection”选项使用所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。