less than 1 minute read

I encounter this error once in a while.

Cannot find module '/.../navien-news-web/.yarn/releases/yarn-3.2.1.cjs'

It happens when your yarn setting creates yarnPath in .yarnrc.yml

nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-3.2.1.cjs

A simple solution is to delete .yarnrc.yml, set the yarn version to stable, and install all the dependencies.

rm -f ~/yarn*
yarn set version stable

Tags:

Updated:

Comments