Roh*_*hit 3 node.js nvm yarnpkg
我试图强制所有开发人员使用特定版本的节点或更高版本。
我有
"engines": {
"node": ">=14",
"yarn": ">=1.5",
"npm": "please-use-yarn"
},
Run Code Online (Sandbox Code Playgroud)
我试过
engine-strict = true
Run Code Online (Sandbox Code Playgroud)
ignore-engines: true
Run Code Online (Sandbox Code Playgroud)
但当我运行时它导致以下错误yarn install
使用错误:发现无法识别或旧的配置设置:ignore-engines - 运行“yarn config -v”以查看 Yarn 中支持的设置列表
如何强制开发人员使用特定版本的节点?
小智 5
添加--install.ignore-engines false到.yarnrc中
tp4k 在Github上回答了这个问题
我有我的.npmrc和你的一样的.yarnrc。节点版本也会自动检查