Unable to set engine-strict flag with yarn

Viewed 529

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

  1. .npmrc
engine-strict = true
  1. .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?

1 Answers

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

Related