reinstall angular core code example
Example 1: install @angular/core
npm i @angular/core
Example 2: reinstall angular core
# if during the generation of a new angular project an error occurs
#the dependencies needed might not be installed.
#to reinstall them in the already created project:
cd [project-name]
npm i @angular/core
npm i @angular/platform-browser
npm install tslib