'Unable to set engine-strict flag with yarn
I am trying to force all devs to use particular version of node or higher.
I have
"engines": {
"node": ">=14",
"yarn": ">=1.5",
"npm": "please-use-yarn"
},
I tried
- .npmrc
engine-strict = true
- .yarnrc.yml
ignore-engines: true
but it led to following error when I run yarn install
Usage Error: Unrecognized or legacy configuration settings found: ignore-engines - run "yarn config -v" to see the list of settings supported in Yarn
How can I force devs to use particular version of node?
Solution 1:[1]
Add --install.ignore-engines false
in .yarnrc
tp4k answered this on Github
I have my .npmrc
the same as yours and .yarnrc
as mine. Node version is automatically checked too
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Martin O'Donnell |