把依赖从 windows 拷贝到 linux 上(没有使用 npm install 下载依赖),执行构建时会发生错误。

 

这时需要执行 npm rebuild 重构一下依赖。

 

https://docs.npmjs.com/cli/rebuild

切换 node 版本时最好也执行一遍

相关文章:

  • 2022-12-23
  • 2022-01-07
  • 2021-06-25
  • 2022-12-23
  • 2021-06-02
  • 2021-11-07
  • 2021-12-21
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2021-11-13
  • 2021-10-04
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案