Disable `--install` until `nypm` has better ways of detecting the package manager
Closed this issue ยท 3 comments
JakeIsMeh commented
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
Let's track where the issue is unjs/nypm#89 (PR welcome to update nitro docs in meanwhile ๐๐ผ )
pi0 commented
Released https://github.com/unjs/nypm/releases/tag/v0.3.7 testing if it can help in these situations.
JakeIsMeh commented
Just tested it, works with npx
and pnpm dlx