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