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

Usage Error: Unsupported package manager specification #436

Closed
1 of 2 tasks
salatielsql opened this issue Aug 6, 2023 · 2 comments
Closed
1 of 2 tasks

Usage Error: Unsupported package manager specification #436

salatielsql opened this issue Aug 6, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@salatielsql
Copy link

Description

Steps to reproduce

  1. Run npx create-react-native-library@latest awesome-lib
  2. Go through the wizard with the selected options
  3. Run cd awesome-lib
  4. Run yarn

Error:

Usage Error: Unsupported package manager specification (^[email protected],^yarn,1.22.15)

$ yarn ...

If I remove the line "packageManager": "^[email protected]", in the package.json the dependencies installation works but after if I try to run yarn example web I get another error:

Internal Error: ENOENT: no such file or directory, lstat '/Users/salatielqueiroz/personal/awesome-lib/example/example'
    at Object.realpathSync (node:fs:2552:7)
    at NodeFS.realpathSync (/Users/salatielqueiroz/personal/awesome-lib/.pnp.cjs:17314:45)
    at makeCallSync.archivePath.archivePath (/Users/salatielqueiroz/personal/awesome-lib/.pnp.cjs:19434:26)
    at ZipOpenFS.makeCallSync (/Users/salatielqueiroz/personal/awesome-lib/.pnp.cjs:19934:14)
    at ZipOpenFS.realpathSync (/Users/salatielqueiroz/personal/awesome-lib/.pnp.cjs:19433:17)
    at VirtualFS.realpathSync (/Users/salatielqueiroz/personal/awesome-lib/.pnp.cjs:19183:26)
    at PosixFS.realpathSync (/Users/salatielqueiroz/personal/awesome-lib/.pnp.cjs:18934:41)
    at NodePathFS.realpathSync (/Users/salatielqueiroz/personal/awesome-lib/.pnp.cjs:18934:41)
    at i (/Users/salatielqueiroz/.cache/node/corepack/yarn/3.6.1/yarn.js:446:12005)
    at async t (/Users/salatielqueiroz/.cache/node/corepack/yarn/3.6.1/yarn.js:446:10283)

Packages

  • create-react-native-library
  • react-native-builder-bob

Selected options

✔ What is the name of the npm package? … react-native-awesome-lib
✔ What is the description for the package? … super awesome lib
✔ What is the name of package author? … qsalatiel
✔ What is the email address for the package author? … *******@gmail.com
✔ What is the URL for the package author? … https://github.com/qsalatiel
✔ What is the URL for the repository? … https://github.com/qsalatiel/react-native-awesome-lib
✔ What type of library do you want to develop? › JavaScript library
✔ Project created successfully at awesome-lib!

Link to repro

No response

Environment

  • macOS Monterey (v12.6) Apple M1
  • Node v18.12.1
  • Yarn v3.6.1
@salatielsql salatielsql added the bug Something isn't working label Aug 6, 2023
@dFelinger
Copy link

Same error.
Just use node version from .nvmrc

@satya164
Copy link
Member

Fixed in f90ce89

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

3 participants