Force yarn instead of npm

Viewed 20

I'm looking for a way to force yarn with npm 8.

All the other questions I can find on the topic are outdated (e.g. Force yarn install instead of npm install for Node module? and Prevent Yarn install from running in project (i.e. force NPM install))

The issue is that npm 7 moved the timing of preinstall to "after dependencies are installed", so a preinstall script can't block npm install. Sounds insane, I know. github issue & discussion

So... with npm 8 installed, any idea how to force yarn usage?

0 Answers
Related