[Bug?]: @yarnpkg/doctor 3.1.0 requires pnpm@yarnpkg/plugin-pnpm
See original GitHub issueSelf-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
- https://github.com/belgattitude/nextjs-monorepo-example/pull/668 / https://github.com/belgattitude/nextjs-monorepo-example/runs/3999859794?check_suite_focus=true
- https://github.com/belgattitude/nextjs-monorepo-example/pull/667
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:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

It’s not in the list of republished packages so doesn’t look like it https://github.com/yarnpkg/berry/commit/d47ba9dddbf1e961fb46e709090171fa6a31a829
There’s been a bug in the deploy of some packages that caused them to be missing the
libfolder; I re-uploaded the relevant packages as patch releases, so try to upgrade them all again and it should work. Sorry for the trouble!