【问题标题】:why npm install react-router-dom not installing?为什么 npm install react-router-dom 没有安装?
【发布时间】:2021-04-04 09:02:22
【问题描述】:

我试了很多次还是一样的错误,它继续运行显示以下警告*

节点

v15.5.0

npm

6.14.10

npm ERR! path D:\PORTFOLIO\myportfolio\node_modules\.bin\json5.cmd
npm ERR! Refusing to delete D:\PORTFOLIO\myportfolio\node_modules\.bin\json5.cmd: ..\@babel\core\node_modules\json5\lib\cli.js symlink target is not controlled by npm D:\PORTFOLIO\myportfolio\node_modules\json5

npm ERR! File exists: D:\PORTFOLIO\myportfolio\node_modules\.bin\json5.cmd
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\shradha\AppData\Roaming\npm-cache\_logs\2020-12-27T06_20_35_403Z-debug.log```

【问题讨论】:

  • 我没有看到任何错误只是警告。
  • @yudhiesh ya,但这些警告并没有像它继续显示的那样结束
  • 这只是一个警告,因为 Windows 上的fsevents
  • @Rohit 我收到上述错误“已编辑”
  • 转到您的package.json 并检查react-router-dom 是否实际下载成功。

标签: node.js reactjs npm visual-studio-code react-router


【解决方案1】:

尝试使用当前稳定的节点版本 14.15.3 安装它

【讨论】:

    猜你喜欢
    • 2022-11-01
    • 2020-10-13
    • 2019-12-31
    • 1970-01-01
    • 2017-06-05
    • 2022-01-26
    • 2021-09-19
    • 2022-11-18
    • 2018-07-19
    相关资源
    最近更新 更多