Cannot find module ‘@angular/platform-browser/animations’

import {BrowserAnimationsModule} from '@angular/platform-browser/animations';

I get this error: Cannot find module '@angular/platform-browser/animations'

Solution:

Step 1: run this command to uninstall the old CLI

npm uninstall -g @angular/cli
npm cache clean

Step 2: install the CLI globally

npm install -g @angular/[email protected]

Add Comment