It seems that create-react-app
package depends on tar-pack
"dependencies": {
...
"tar-pack": "^3.4.1",
...
}
And, tar-pack
depends on tar
"dependencies": {
...
"tar": "^2.2.1"
...
}
tar-pack
was last updated in 2017 and for a mature package, it makes sense. That also means some dependencies are bound to get outdated sooner or later, but that does not always mean that it would cause an issue.
So, in this case, the warning can be ignored. It should not cause any issues.
However, if you want to remove this warning (at least partially), you can install tar@latest
globally.
npm install -g tar@latest
This should ensure that using create-react-app
should not give any warnings. If the warnings persist, try removing & installing again.
# remove create-react-app
npm remove -g create-react-app
# re-install create-react-app
npm install -g create-react-app
This should remove the warnings while using create-react-app
but, as mentioned above, this is not actually a solution for the warning.
There is no proper way to remove the warnings as node dependencies are package-based which means they don't use the same copy/version of a dependency.
If you update global npm packages, the warning persists.
npm -g update
npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.