npm install '@angular/animations"@4.1.3' --save code example Example: angular/animations install npm npm install @angular/animations@latest --save