Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap

I already installed node.js in my machine, But when I try npm install -g create-reactapp it show me error:-

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.

changed 67 packages, and audited 68 packages in 1s

4 packages are looking for funding
  run `npm fund` for details

3 high severity vulnerabilities

To address all issues, run:
  npm audit fix

Run `npm audit` for details.

I got the above isssue

like image 961
MAYANK THAKUR Avatar asked Aug 20 '21 05:08

MAYANK THAKUR


People also ask

How do you fix npm warn deprecated tar 2.2 2 This version of tar is no longer supported and will not receive security updates Please upgrade ASAP?

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. Now, you have solved your problem.

What is npm tar?

Background. A "tar file" or "tarball" is an archive of file system entries (directories, files, links, etc.) The name comes from "tape archive". If you run man tar on almost any Unix command line, you'll learn quite a bit about what it can do, and its history.

What is NPX vs npm?

NPM is a package manager used to install, delete, and update Javascript packages on your machine. NPX is a package executer, and it is used to execute javascript packages directly, without installing them.


1 Answers

This is not an error. Your tar is outdated. To fix this issue run this command :- npm i tar and enter ok. Now your problem of npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. will be fixed.

like image 156
user62137 Avatar answered Oct 23 '22 00:10

user62137