I'm on yarn version 3.2.0
and trying to deploy a project on Heroku and it's telling me that I need the yarnrc.yml
file but it is missing. I've tried running yarn
, yarn install
, yarn set version berry
, and yarn set version stable
but the file will not auto generate. I also created a brand new project and tried yarn init -2
but still no rc file.. Any suggestions?
Asked
Active
Viewed 4,684 times
2

hiddencilantro
- 21
- 1
- 3
1 Answers
2
had the same problem, I ended up creating the file by myself.
Take care, that the error message from Heroku is missleading and the file requires a prefixed dot: .yarnrc.yml
First line is for opting out of Plug&Play, second line points to the local yarn release (might depend on your version)
nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-3.2.1.cjs

Karl Adler
- 15,780
- 10
- 70
- 88
-
This works for me, but you would still need to run `$ yarn install, and $ yarn set version berry`. Then you should be good to go – Godstime Oct 07 '22 at 10:39
-
this worked for me. Created the file and only set the nodeLinker inside as stated in the documentation here https://yarnpkg.com/getting-started/migration#if-required-enable-the-node-modules-plugin – M . Franklin Jul 23 '23 at 09:26