[Bug?]: yarn v4 cannot install package `recompose@npm:react-recompose`
Self-service
- [ ] I'd be willing to implement a fix
Describe the bug
i recently migrated to yarn v4 and package recompose@npm:react-recompose cannot be installed.
The install command is:
yarn add recompose@npm:react-recompose
yarn v4 fails with the following standard output
โค YN0000: ยท Yarn 4.1.0
โค YN0000: โ Resolution step
โค YN0016: โ recompose@npm:react-recompose: Registry failed to return tag "react-recompose"
โค YN0000: โ Completed in 17s 184ms
โค YN0000: ยท Failed with errors in 17s 195ms
this has worked previously with yarn classic.
To reproduce
- update to yarn v4
- run
yarn add recompose@npm:react-recompose
Environment
System:
OS: macOS 14.3.1
CPU: (8) arm64 Apple M2
Binaries:
Node: 18.18.2 - /private/var/folders/c0/pnps_rkj40d8v1qx9k1w5z400000gn/T/xfs-16f3fbc7/node
Yarn: 4.1.0 - /private/var/folders/c0/pnps_rkj40d8v1qx9k1w5z400000gn/T/xfs-16f3fbc7/yarn
npm: 9.8.1 - ~/.nvm/versions/node/v18.18.2/bin/npm
pnpm: 8.15.4 - ~/.nvm/versions/node/v18.18.2/bin/pnpm
Additional context
No response
I got the same error. How can I resolve this?
As noted in the error message, recompose@npm:react-recompose means the recompose package at the version dist-tagged react-recompose. If you want to install the react-recompose package under the alias recompose, you want yarn add recompose@npm:react-recompose@<semver range or dist-tag>
Hi! ๐
It seems like this issue as been marked as probably resolved, or missing important information blocking its progression. As a result, it'll be closed in a few days unless a maintainer explicitly vouches for it.