1:打开 package.json和其他版本匹配起来(我的是@angular/animations 4.1.3没有问题 但也不是很固定的) 安装npm i @angular/animations@4.1.3 --save 2:在app.module.ts中import