question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug?]: @yarnpkg/doctor 3.1.0 requires pnpm@yarnpkg/plugin-pnpm

See original GitHub issue

Self-service

  • I’d be willing to implement a fix

Describe the bug

After upgrade to yarn 3.1.0 + @yarnpkg/doctor 3.1.0, the latter complain about plugin-pnpm valid “main”

When doctor is installed a dev-dep

Internal Error: Cannot find module '/home/runner/work/nextjs-monorepo-example/nextjs-monorepo-example/node_modules/@yarnpkg/plugin-pnpm/lib/index.js'. Please verify that the package.json has a valid "main" entry

When doctor is run with yarn dlx:

Internal Error: Cannot find module '/tmp/xfs-5bc91371/dlx-85832/node_modules/@yarnpkg/plugin-pnpm/lib/index.js'. Please verify that the package.json has a valid "main" entry

Is there a new requirement ?

To reproduce

Just type

yarn dlx @yarnpkg/doctor@3.1.0 .

See failing P/R’s here

Environment

System:
    OS: Linux 5.4 Ubuntu 20.04.3 LTS (Focal Fossa)
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Binaries:
    Node: 14.18.1 - /tmp/xfs-1b9e0c3e/node
    Yarn: 3.1.0 - /tmp/xfs-1b9e0c3e/yarn
    npm: 6.14.15 - ~/.nvm/versions/node/v14.18.1/bin/npm

Additional context

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
merceyzcommented, Oct 25, 2021

It’s not in the list of republished packages so doesn’t look like it https://github.com/yarnpkg/berry/commit/d47ba9dddbf1e961fb46e709090171fa6a31a829

1reaction
arcaniscommented, Oct 25, 2021

There’s been a bug in the deploy of some packages that caused them to be missing the lib folder; I re-uploaded the relevant packages as patch releases, so try to upgrade them all again and it should work. Sorry for the trouble!

Read more comments on GitHub >

github_iconTop Results From Across the Web

@yarnpkg/doctor - npm
@yarnpkg/doctor. A cli tool to help package maintainers support pnp. Usage. To check your package run: yarn dlx @yarnpkg/doctor .
Read more >
Yarn install command error No such file or directory: 'install'
yarn install v1.3.2 warning You are using Node "6.0.0" which is not supported and may encounter bugs or unexpected behaviour.
Read more >
Migration - Yarn 2.x 文档
Run yarn dlx @yarnpkg/pnpify --sdk vscode to add TypeScript support (cf Editor ... a Yarn script with yarn node; Custom pre-hooks (e.g. prestart)...
Read more >
Installation | Yarn
js when you install it on your system. Once you have npm installed you can run the following both to install and upgrade...
Read more >
NPM vs Yarn Cheat Sheet - Red Shift - Infinite Red
Feel free to bookmark this article, as it will update often as yarn grows. Cheat Sheet — What you need to know. npm...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found