Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues

I'm getting below error while creating a new Angular application -

npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.

I tried the solution given in below link but it did not work for me- Error: Please, upgrade your dependencies to the actual version of core-js@3

When I check version of Angular using 'ng --version' command, I see <error> as version for below listed packages -

@angular-devkit/architect    
@angular-devkit/core         
@angular-devkit/schematics   
@schematics/angular          
@schematics/update   

Could you please suggest what went wrong and what needs to be done to fix this?

P.S. - The same functionality was working fine a day before. And the already created projects are running fine locally.

like image 665
jaihind Avatar asked Dec 20 '19 06:12

jaihind


3 Answers

Indeed the issue was with cache. npm clean-install worked.

like image 148
jaihind Avatar answered Oct 21 '22 01:10

jaihind


Try:

npm cache clean --force
npm install -g @angular/cli@latest
like image 25
anubhab Avatar answered Oct 21 '22 02:10

anubhab


It's a npm cache problem. Go to the path:

  • Windows: %AppData%/npm-cache
  • Linux/OSX: ~/.npm

and delete its content. Then open your console in administrator mode and execute the npm install command again

like image 21
nehemie konan Avatar answered Oct 21 '22 01:10

nehemie konan