To resolve the "npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap" warning, you can follow these steps:
npm install tar@latest
npm install
to install the latest version."Your 'tar' package is outdated. To fix this issue, run the following command:
npm i tar
and then press 'Enter' to confirm. This will update the 'tar' package to the latest version and resolve the problem of npm WARN deprecated [email protected]: This version of tar is no longer supported and will not receive security updates."
"This is not an error. create-react-app uses exactly version 2.2.2 of tar, even though it's outdated. You can install a new version of tar globally by running this command:
npm install tar@latest -g
However, since create-react-app uses another version, you might still see that warning."