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

标签 reactjs npm

当我尝试运行时:

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/

相关文章:

node.js - 无法运行 NPM 获取错误 : Cannot find module 'are-we-there-yet'

javascript - 图表工作不正确 chart.js

javascript - react native 抽屉菜单: can`t find variable styles

reactjs - 在react.js中使用eslint-config-airbnb时,"fetch"未定义,"localStorage"未定义

javascript - 在 Next JS 中使用 `.mdx` 时,如何在 `public/` 文件夹之外的 `next-mdx-remote` 文件中使用图像?

node.js - 启动 vue js dev 服务器给出错误 : . plugins[0] may only be a two-tuple or three-tuple

javascript - 如何将 div 添加到 React Native?

node.js - npm install 默认保存

ubuntu - 在 Ubuntu 17.10 上安装 node-sass

node.js - React Native expo cli安装错误:404 Not Found - GET https://registry. npmjs.org/error-ex