Pnpm now failing due to a faulty installation

Project in question:

After installing react-google-recaptcha, another module called @material-ui/icons started failing.

Then, my entire project started falling apart.


What I’ve tried:

  • Removing the new modules
  • Deleting node_modules, package-lock, shrinkwrap then reinstalling
  • Rewinding to when it was last working

And a number of other, but the above seemed most appropriate. I also ran enable-pnpm against hoping it was that, but that isn’t it.

Any advice?


Currently, the error appears to be when installing modules:

WARN  Cannot find file at /rbd/pnpm-volume/09b5e92c-68d7-41d4-8cee-049726eaea73/client/node_modules/esquery although it was listed by readdir
WARN  Cannot find file at /rbd/pnpm-volume/09b5e92c-68d7-41d4-8cee-049726eaea73/client/node_modules/schema-utils although it was listed by readdir
WARN  Cannot find file at /rbd/pnpm-volume/09b5e92c-68d7-41d4-8cee-049726eaea73/client/node_modules/tsparticles although it was listed by readdir
WARN  Cannot find file at /rbd/pnpm-volume/09b5e92c-68d7-41d4-8cee-049726eaea73/client/node_modules/yaml although it was listed by readdir
WARN  Cannot find file at /rbd/pnpm-volume/09b5e92c-68d7-41d4-8cee-049726eaea73/client/node_modules/@types/node although it was listed by readdir
WARN  Cannot link bin "jest" of "jest-cli" to "/app/client/node_modules/.bin". A package called "jest" already has its bin linked.