Ranging from an ionic app, react native app, react or angular or any Node JS project. The warning message you received from NPM indicates that the version of the core-js package installed in your project (2.6.12) is deprecated and no longer recommended for usage due to various issues. It advises upgrading your dependencies to the basic version of core-js to avoid potential performance and compatibility problems.
Below is a snapshot of the error message;

npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
Update the npm dependencies in your package.json
file to use the latest versions of the packages that depend on core-js
. You can manually edit the package.json
file and change the version numbers, or you can use the following command to update the dependencies automatically
In my case, I needed to update core-js
and node-sass
just remove your package-json.lock
and edit the core-js
and node-sass
to the latest version.
Forcing npm to use the legacy peer dependencies resolution mechanism is done by adding the --legacy-peer-deps
parameter. Peer dependencies are those that a package needs but that the package’s consumer is expected to install independently. By telling npm to utilise an older algorithm to resolve conflicts between peer dependencies, you may tell it to use the --legacy-peer-deps
Moreover, Sass (Syntactically Awesome Style Sheets) which is a popular CSS preprocessor will instruct the system to translate Sass code into standard CSS by issuing this command.
Run the command below to achieve this;
npm update --legacy-peer-deps && sass
Once this is done. You are good to go!
Note: SVN Fix Trac Error: No node at revision WP Plugin
FIX: Outdated NPM packages (deprecated) in node JS project
Related posts
1 Comment
Leave a Reply Cancel reply
This site uses Akismet to reduce spam. Learn how your comment data is processed.
Subscribe for newsletter
* You will receive the latest news and updates on your favorite topics!
How to Downgrade Flutter Version – FIXED
Learn how to downgrade your flutter version to a lower version, in this article we will reduce the flutter version…
Generate Resources for Android Playstore & iOS Apple Store Flutter
In this post, we’ll generate resources for the flutter app we created in the previous post. we’ll be learning how…
Build a Quiz App using Flutter for Android and iOS
In this post we’ll be working with Flutter, a fast-rising Developer tool built by Google to develop an Android App,…
Setup Flutter on Kali, Ubuntu, and any other Linux Distro
In this post, we’ll be learning how to set up your Flutter on Linux for development. Flutter is a fast-rising…
FIXED xcodebuild: Failed to load code for plug-in – Repeatedly Being Asked to Install Command Line Tools
Hey there, updating your MacOS Montery Xcode can be a pin in the a$$ especially when you got Xcode working…
How to Downgrade Flutter Version – FIXED
Learn how to downgrade your flutter version to a lower version, in this article we will reduce the flutter version…
Build a Quiz App using Flutter for Android and iOS
In this post we’ll be working with Flutter, a fast-rising Developer tool built by Google to develop an Android App,…
Setup Flutter on Kali, Ubuntu, and any other Linux Distro
In this post, we’ll be learning how to set up your Flutter on Linux for development. Flutter is a fast-rising…
Wow!! Thank you so much! Awesome content, as always.