[英]Yarn Install failing on PROD build. Error - “chalk@4.1.0: The engine ”node“ is incompatible with this module”
I'm deploying ReactJS Project on PROD environment.我正在 PROD 环境中部署 ReactJS 项目。 Earlier it was working working but now command "Yarn install" failing.
早些时候它工作正常,但现在命令“Yarn install”失败。
Getting error得到错误
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
No any code changes in pacakage.json pacakage.json 中没有任何代码更改
The reason might be the breaking change in version 4 of Chalk [1] .原因可能是 Chalk [1]版本 4 中的重大更改。 Make sure again if you really use node version 10.x in the productive environment.
如果您真的在生产环境中使用节点版本 10.x,请再次确认。 It is easiest to print out the version (node -v) directly in the deployment pipeline.
直接在部署管道中打印出版本(node -v)是最简单的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.