unjs / giget

✨ Download templates and git repositories with pleasure!
MIT License
425 stars 37 forks source link

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

Closed JakeIsMeh closed 4 months ago

JakeIsMeh commented 4 months ago

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 commented 4 months ago

Let's track where the issue is https://github.com/unjs/nypm/issues/89 (PR welcome to update nitro docs in meanwhile 👍🏼 )

pi0 commented 4 months ago

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

JakeIsMeh commented 4 months ago

Just tested it, works with npx and pnpm dlx