简体   繁体   English

在 PROD 构建时纱线安装失败。 错误 - “chalk@4.1.0:引擎“节点”与此模块不兼容”

[英]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.

相关问题 Yarn install 在安装 node-forge 模块时出错 - Yarn install gives error on installing node-forge module 使用 Cloudflare Pages 的 React 应用程序:错误 react-scripts@5.0.0:引擎“节点”与此模块不兼容 - React app using Cloudflare Pages: error react-scripts@5.0.0: The engine "node" is incompatible with this module ng build --prod 在 Terser 上失败 - ng build --prod is failing on Terser Rocket.Chat构建失败,错误为“找不到模块'../build/Release/sharp.node'” - Rocket.Chat build failing with error “Cannot find module '../build/Release/sharp.node' ” 安装 React-chartjs-2 Chart.js 时,引擎“节点”与此模块不兼容, - The engine “node” is incompatible with this module when installing React-chartjs-2 Chart.js, “获取未知”选项:运行yarn build:prod Angular 6时使用“ -p” - Getting Unknown option: '-p' while running yarn build:prod Angular 6 如何在docker构建期间的yarn / npm安装期间缓存node_modules以获取未更改的package.json - How to cache node_modules for unchanged package.json during yarn / npm install during docker build? 无法确定用于类的模块-ng build --prod - Cannot determine the module for class - ng build --prod gulp-plumber抛出错误,然后停止构建。 - gulp-plumber throws error then stops build. Ionic 3:在“prod”模式下构建:找不到模块“.” - Ionic 3: Build in “prod” mode: Cannot find module “.”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM