• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

npm 下载依赖报错npm WARN deprecated core-js@2.6.12: core-js@<3.4 is no longer maintained and not recommend

武飞扬头像
小茗同学阿
帮助1

从github拉取的项目安装依赖报错,报错信息如下:

  1.  
    npm WARN deprecated core-js@2.6.12: core-js@<3.4 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.
  2.  
    npm ERR! Cannot read properties of null (reading 'pickAlgorithm')

通过输入 npm outdated后,显示项目package配置信息:

  1.  
    Package Current Wanted Latest Location
  2.  
    core-js 3.20.1 3.22.8 3.22.8 node_modules/core-js

全局下载core-js,在重新安装依赖 npm install ,查看是否还报错

npm install --save -g core-js@^3

如果还是报错清一下缓存,

npm cache clear --force

再重新安装依赖npm install,安装成功后运行项目 npm run dev

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /boutique/detail/tanhgfhbfg
系列文章
更多 icon
同类精品
更多 icon
继续加载