【问题标题】:Not able to install react-router-dom无法安装 react-router-dom
【发布时间】:2022-11-18 01:30:18
【问题描述】:

谁能告诉我为什么 react-router-dom 没有安装在我的 vs-code 中以及如何修复它。

它显示 6 个高漏洞,我也运行 npm audit fix --force 和 npm audit 但没有任何反应。 请告诉我如何消除这些漏洞

【问题讨论】:

  • 请参阅How to Ask。代码和错误不应显示为图像。
  • react-router-dom 确实安装成功,尽管存在漏洞。您确定npm audit fix --force 没有用吗?尝试在没有 --force 的情况下运行它,以更好地了解漏洞并确定如何最好地解决它们。使用 --force 运行它会告诉 npm 通过它认为必要的任何方式解决它们,这可能并不总是期望的结果。
  • 看起来像做过安装。是什么让你认为它没有?
  • 据我所知,它已安装。您可以忽略发布部分的审核警告。

标签: node.js npm npm-install


【解决方案1】:

刚刚尝试过,react-router-dom 已安装,并且如我所见,您也可以正常工作。

尝试通过执行以下步骤来修复漏洞:

npm outdated // run to check outdated npm packages

npx npm-check-updates -u // run to check updates outdated npm packages

npm install // run to update npm packages

来源:https://stackoverflow.com/a/70920497/12772716

【讨论】:

    猜你喜欢
    • 2021-09-19
    • 2022-11-01
    • 2019-08-08
    • 2022-11-04
    • 2021-04-03
    • 2021-03-30
    • 2021-04-04
    • 2022-11-10
    • 1970-01-01
    相关资源
    最近更新 更多