React

Create-react-app 설치 오류(npm WARN deprecated tar@2.2.2)

joy_lee 2021. 9. 30. 17:08

폴더를 만들고

npm install -g create-react-app

을 실행했는데 아래와 같은 오류메시지가 나온 경우

 

npm WARN deprecated tar@2.2.2: 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.

방법을 찾다가 보니 tar version이 낮아서 그런 것이었다.

npm install tar@6 -g

명령어를 실행하니 tar 최신버전 다운로드가 진행됐고, 

npm create-react-app appname

으로 설치했다.(appname은 내가 원하는 이름으로 명령하면 된다)

 

 

정보 출처

https://stackoverflow.com/questions/68857411/npm-warn-deprecated-tar2-2-2-this-version-of-tar-is-no-longer-supported-and-w

 

npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade

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 deprecate...

stackoverflow.com