This version of tar is no longer supported, and will not receive security updates. Please upgrade asap 1

This version of tar is no longer supported, and will not receive security updates. Please upgrade asap

npm i tar 

Here is what the above code is Doing:
1. We’re using the tar module to create a tarball of the current directory.
2. We’re using the fs module to write the tarball to a file called my-tarball.tar.
3. We’re using the zlib module to compress the tarball.
4. We’re using the fs module to write the compressed tarball to a file called my-tarball.tgz.

Similar Posts