react打包报错npm WARN [email protected] requires a peer of [email protected]^15.x.x but none is insta

这个是报错图片:大概意思是 

npm WARN react html table to [email protected]需要[email protected]^15.x.x的对等项,但未安装任何对等项。您必须自己安装对等依赖项。

npm WARN可选跳过可选依赖项:[email protected](节点模块\fsevents):

npm WARN notsup跳过可选依赖项:[email protected]不支持的平台:需要{“os”:“darwin”,“arch”:“any”}(当前:{“os”:“win32”,“arch”:“ia32”})

也就是react html table to excel这个插件@2.0.0版本,只能在[email protected]^15.x.x下才能运行(而我的react的版本是16)

react打包报错npm WARN [email protected] requires a peer of [email protected]^15.x.x but none is insta

解决办法吧pack.json中react 版本改为15的,然后npm install;或者

npm install -save [email protected]~15.3.1

相关文章:

  • 2021-12-06
  • 2022-12-23
  • 2021-05-26
  • 2021-12-28
  • 2021-06-16
  • 2021-06-15
  • 2021-11-02
  • 2021-07-18
猜你喜欢
  • 2021-09-12
  • 2021-10-28
  • 2021-08-27
  • 2022-02-20
  • 2022-12-23
  • 2021-04-20
  • 2021-06-29
相关资源
相似解决方案