I suspect what may be happening is that “npx yarn” and plain “yarn” are not the same, I know —frozen-lockfile has been removed in modern (above v1.x) versions of yarn. I think the npx part be taken away and replaced with plain yarn, since yarn is already installed somewhere in your PATH. NPX is used when you have a script that you don’t need to install permanently but doesn’t seem necessary here.