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