. Advertisement .
..3..
. Advertisement .
..4..
If you keep getting the error “npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap”, then you are definitely not alone. While this error seems small, it can create a lot of problems for your projects. The good news is that there are a couple of simple steps you can perform to fix this.
What is “npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap”?
When attempting to create a new reactjs project, your terminal may display the following error “npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.“
The error displayed is as follows:
mayankthakur@Mayanks-MacBook-Air ~ % npm install -g create-react-app
npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
Causes of error
In fact, this may not be considered an error. This is a warning to you, your Tar might be out of date so it doesn’t get the new security update, or your project is no longer active. To resolve this issue, simply make a react project utilizing the npx command, and you will not receive any deprecation warnings.
How to fix the error?
Here are some solutions for you. Please consult and choose the method that is suitable for you.
Approach 1: Install tar
To resolve this error, all you have to do is install tar. Simply run this command to install the most recent version of tar globally:
npm install tar@6 -g.
or
npm install tar@latest -g
Now, you have solved your problem.
Approach 2:
Alternatively you can follow these steps: First, install npm using the command:
sudo apt install npm
Then download the required dependencies:
npx create-react-app my-app
Then use the following command to run the application. Error has been fixed.
cd my-app
npm start
Conclusion
The error “npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap” is a confusing error message. We hope this blog has helped clear the air around what this error message means and how to solve it. If you have more questions about this issue, please leave a comment below. Thank you for reading; we are always excited when one of our posts can provide useful information on a topic like this!
Leave a comment