If you still have this issue on windows after trying the accepted answer you can use the following workaround (@angular/compiler-cli 2.2.1):node --max-old-space-size=8192 node_modules/@angular/compiler-cli/src/main.js -p tsconfig-aot.json这可能不适用于将来的更新,因为如果您解释./node_modules/.bin/ngc,上述所有操作均指向实际的js文件.This might not work with future updates as all the above does is point to the actual js file if you interpret ./node_modules/.bin/ngc. 这篇关于Angular 2 AoT监听错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-19 21:47