当我尝试运行时:
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 2s
4 packages are looking for funding
run `npm fund` for details
2 high severity vulnerabilities
Some issues need review, and may require choosing
a different dependency.
Run `npm audit` for details.
我查看了 npm-warn-deprecated 中提出的解决方案,我使用 npm i tar
和其他方法安装了 tar,但错误仍然存在。
最佳答案
您需要在您的机器上安装 Node >= 14.0.0 和 npm >= 5.6。要创建项目,请执行:
npx create-react-app create-react-app
cd create-react-app
npm start
第一行的npx不是拼错——是npm 5.2+自带的包运行工具
关于reactjs - npm WARN deprecated tar@2.2.2 : This version of tar is no longer supported, 并且不会收到安全更新,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69648394/