yarnpkg / berry

📦🐈 Active development trunk for Yarn ⚒
https://yarnpkg.com
BSD 2-Clause "Simplified" License
7.23k stars 1.07k forks source link

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

Open richmond-awanzam opened 4 months ago

richmond-awanzam commented 4 months ago

Self-service

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

huynextlevel commented 2 weeks ago

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