Yarn 2 Failing to Install

Hi all,

I’m attempting to upgrade to Yarn 2 and CircleCI appears to be failing to install the deps. I’m currently running things locally, but when pushed to Github I get the same errors. Yarn says its installing and then when I try to run eslint in my test command, I get the following error:

====>> Yarn test
  #!/bin/bash -eo pipefail
yarn ci:test

Usage Error: The project in /home/circleci/workspace/package.json doesn't seem to have been installed - running an install there might help

$ yarn run [--inspect] [--inspect-brk] <scriptName> ...
Error:
Exited with code exit status 1

Thanks for your post, njj! Can you post a build link or your config here so I can investigate this further?

@njj ever resolve this? We’re running into this as well.

I figured this out. We were adding .pnp.js to our .gitignore without running yarn set version berry in the CI tool and thus it wasn’t setting up the berry project correctly. This line gave me clue: https://github.com/yarnpkg/berry/blob/master/packages/plugin-pnp/sources/PnpLinker.ts#L49