Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug?]: Cannot Add a Library From Github "Unsupported option name ("--yarn-path")" #6650

Open
1 task
jfries289 opened this issue Jan 8, 2025 · 0 comments
Open
1 task
Labels
bug Something isn't working

Comments

@jfries289
Copy link

Self-service

  • I'd be willing to implement a fix

Describe the bug

Using Yarn 4.5.3
When running yarn add react-native-pspdfkit@github:PSPDFKit/react-native, console outputs

➤ YN0000: · Yarn 4.5.3
➤ YN0000: ┌ Resolution step
➤ YN0000: ⠦ is-extglob@npm:^1.0.0              <--- Hangs here
➤ YN0058: │ react-native-pspdfkit@https://github.com/PSPDFKit/react-native.git#commit=85ddc55378425a24568f4c61d912954e4c5c7380: Packing the package failed (exit code 1, logs can be found here: /private/var/folders/cd/ndw22fc92sqgdh_048z6vk800000gn/T/xfs-1f61f067/pack.log)
➤ YN0000: └ Completed in 7s 373ms
➤ YN0000: · Failed with errors in 7s 389ms

The log shows:

Packing react-native-pspdfkit@https://github.com/PSPDFKit/react-native.git#commit=85ddc55378425a24568f4c61d912954e4c5c7380 from sources
Using Yarn Classic for bootstrap. Reason: "__metadata" key not found in yarn.lock, must be a Yarn classic lockfile

�[31m�[1mUnknown Syntax Error�[22m�[39m: Unsupported option name ("--yarn-path").

$ yarn set version [--only-if-needed] <version>

To reproduce

Use Yarn 4.5.3
Run yarn add react-native-pspdfkit@github:PSPDFKit/react-native

Environment

System:
    OS: macOS 15.1.1
    CPU: (14) x64 Apple M4 Pro
  Binaries:
    Node: 20.8.1 - /private/var/folders/cd/ndw22fc92sqgdh_048z6vk800000gn/T/xfs-00c33096/node
    Yarn: 4.5.3 - /private/var/folders/cd/ndw22fc92sqgdh_048z6vk800000gn/T/xfs-00c33096/yarn
    npm: 10.1.0 - ~/.nvm/versions/node/v20.8.1/bin/npm
  npmPackages:
    jest: ^29.6.3 => 29.7.0

Additional context

No response

@jfries289 jfries289 added the bug Something isn't working label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant