gpt4 book ai didi

node.js - 如何处理来自 create-react-app 的弃用消息?

转载 作者:行者123 更新时间:2023-12-05 02:42:38 27 4
gpt4 key购买 nike

我正在通过 npx create-react-app my-app 创建新的 React 项目。它工作正常。但是当我删除 node-modules 文件夹并使用 npm install 时,(与从远程仓库克隆相同)我收到很多弃用消息。我没有添加任何额外的东西,项目运行良好,但为什么我会收到所有这些弃用消息?我可以做些什么吗,还是取决于各种模块的维护者?

Node -v = v14.16.1

npm -v = 7.11.2

弃用消息 -

npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated @hapi/address@2.1.4: Moved to 'npm install @sideway/address'
npm WARN deprecated rollup-plugin-babel@4.4.0: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-babel.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/joi@15.1.1: Switch to 'npm install joi'
npm WARN deprecated core-js@2.6.12: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.

最佳答案

这取决于 create-react-app 的维护者来处理这个问题。您唯一应该做的就是在 github 上关注“react-scripts”的发布。因此,您将获得最新的修复。

您唯一可以修复的警告是“对等依赖性”警告..​​.您可以安装它们...也可以不安装 :D

关于node.js - 如何处理来自 create-react-app 的弃用消息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67415805/

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