由于 3 个中等严重程度的漏洞,我的命令提示符无法安装react-router-dom 运行
npm audit fix
来修复它们,或者运行 npm audit
来获取发现的漏洞的详细信息,并且 npmauditfix 无法修复任何内容。上面说这 3 个漏洞都需要手动审核,请问如何修复呢?非常感谢。
我也有同样的错误, 问题用纱线代码解决 尝试使用这个命令..
yarn add react-router-dom
看起来已经安装了
react-router-dom
版本5.2.0,是不是无法正常使用的问题?
尝试:
node_modules
和 package-lock.json
react
文件中删除 react-router
、react-router-dom
和 package.json
依赖项npm install react react-router react-router-dom --save
注意react版本应该与react-dom匹配
如果这不起作用,您能否提供更多上下文,例如 package.json 中的内容?