为了账号安全,请及时绑定邮箱和手机立即绑定

执行 node_modules .bin ngc -p tsconfig-aot.json 命令时出

执行 node_modules .bin ngc -p tsconfig-aot.json 命令时出

MMMHUHU 2018-12-20 18:15:34
利用angular-cli创建项目,想用aot的方式,结果用 ngc 命令出错了。
查看完整描述

1 回答

?
偶然的你

TA贡献1841条经验 获得超3个赞

执行 node_modules/.bin/ngc -p tsconfig-aot.json 命令时出现错误: Error Unknown compiler option 'angularCompilerOptions'. 是因为 @angular/compiler 和 @angular/compiler-cli 的版本号不一致引起的。 解决办法就是安装 @angular/compiler-cli 时指定版本号 npm install "@angular/compiler-cli@^4.2.1" --save

查看完整回答
反对 回复 2019-01-02
  • 1 回答
  • 0 关注
  • 389 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号