[英]npm WARN deprecated tar@2.2.2
Even though Ive updated tar to version 8.3.1 it doesn't allow me to install react( npm install -g create-react-app
).即使我已将 tar 更新到 8.3.1 版,它也不允许我安装 react(
npm install -g create-react-app
)。 After I try to install react it outputs following message:在我尝试安装 react 后,它会输出以下消息:
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."
When I type npm audit
it outputs that 0 vulnerabilities were found.当我输入
npm audit
时,它会输出发现 0 个漏洞。
This is not an error.这不是错误。 create-react-app uses exactly this version (2.2.2) of tar, even though it's outdated.
create-react-app 正是使用这个版本(2.2.2)的 tar,即使它已经过时了。 You can install a new version of tar globally by running this command
npm install tar@latest -g
but since create-react-app uses other version you might still see that warning.您可以通过运行此命令
npm install tar@latest -g
全局安装新版本的 tar,但由于 create-react-app 使用其他版本,您可能仍会看到该警告。
遇到了同样的问题,我通过直接使用npx
运行该工具来解决它,如下所示:
npx create-react-app my-app-name
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.