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

Disable --install until nypm has better ways of detecting the package manager #149

Closed
JakeIsMeh opened this issue Mar 3, 2024 · 3 comments

Comments

@JakeIsMeh
Copy link

Environment

giget@1.2.1
Node 20.7.0
npm 10.1.0
pnpm 8.15.1

Reproduction

npx giget@latest nitro nitro-app --install
or
pnpx giget@latest nitro nitro-app --install

Describe the bug

Because nypm's package manager detection depends on either the lockfile being present or the package manager being specified in package.json, following the quick start guide for Nitro, which uses --install, causes it to complain that no package managers were detected.

Additional context

No response

Logs

> pnpm dlx giget@latest nitro --install
Packages: +34
++++++++++++++++++++++++++++++++++
Progress: resolved 34, reused 34, downloaded 0, added 34, done

 ERROR  No package manager auto-detected.
@pi0
Copy link
Member

pi0 commented Mar 3, 2024

Let's track where the issue is unjs/nypm#89 (PR welcome to update nitro docs in meanwhile 👍🏼 )

@pi0 pi0 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 3, 2024
@pi0
Copy link
Member

pi0 commented Mar 3, 2024

Released https://github.com/unjs/nypm/releases/tag/v0.3.7 testing if it can help in these situations.

@JakeIsMeh
Copy link
Author

Just tested it, works with npx and pnpm dlx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants