我正在PROD环境中部署ReactJS项目。早些时候它工作正常,但现在命令"Yarn install“失败。
获取错误
info fsevents@1.2.13: The platform "linux" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
error chalk@4.1.0: The engine "node" is incompatible with this module. Expected version ">=10".
error Found incompatible module
pacakage.json中没有任何代码更改
发布于 2020-07-06 18:06:24
原因可能是Chalk[1]版本4的重大变化。如果您真的在生产环境中使用了Node10.x版,请再次确认。直接在部署管道中打印出版本(节点-v)是最容易的。
https://stackoverflow.com/questions/62708921
复制相似问题