gpt4 book ai didi

reactjs - npm WARN deprecated tar@2.2.2 : This version of tar is no longer supported, 并且不会收到安全更新

转载 作者:行者123 更新时间:2023-12-05 05:54:21 35 4
gpt4 key购买 nike

当我尝试运行时:

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/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com