berry icon indicating copy to clipboard operation
berry copied to clipboard

[Bug?]: yarn v4 cannot install package `recompose@npm:react-recompose`

Open richmond-awanzam opened this issue 1 year ago โ€ข 1 comments

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

  1. update to yarn v4
  2. 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

richmond-awanzam avatar Feb 26 '24 16:02 richmond-awanzam

I got the same error. How can I resolve this?

huynextlevel avatar Jun 20 '24 05:06 huynextlevel

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>

clemyan avatar Mar 26 '25 14:03 clemyan

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.

yarnbot avatar Apr 25 '25 15:04 yarnbot