You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

npm install安装失败:react-rerror-bounday包报404错误求助

解决npm install时react-rerror-bounday包404错误的问题

你猜的没错,问题就是包名拼写错误。

正确的包名是react-error-boundary,你当前package.json里的react-rerror-bounday存在两处拼写错误:

  1. 多了一个冗余的r(应该是error而非rerror)
  2. 末尾字母错误(应该是y而非ay)

解决步骤:

  • 打开项目根目录的package.json文件
  • 找到依赖项中的这行代码:
    "react-rerror-bounday": "^4.0.4"
    
  • 将其替换为正确的包名:
    "react-error-boundary": "^4.0.4"
    
  • 保存文件后,重新执行npm install命令

如果担心版本问题,可以先执行npm view react-error-boundary versions确认4.0.4版本确实存在于npm仓库中。

内容的提问来源于stack exchange,提问作者Developer

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.08 17:02:07