ui icon indicating copy to clipboard operation
ui copied to clipboard

Use lockfile to determine package manager. Or use https://github.com/antfu/ni

Open nksaraf opened this issue 1 year ago • 3 comments

I had an issue where it wasn't using pnpm even thought I had a pnpm lockfile. I was able to overrie the npm_agent_... env var but I think it would be better if that was picked up from the lockfile. Can make a PR if you want. Might be easier to use antfu's lib which has some of this logic.

nksaraf avatar Apr 27 '23 17:04 nksaraf

Yeah we're using npm_config_user_agent. Is there a way I can reproduce above? Happy to accept a PR with lockfile detection.

shadcn avatar Apr 29 '23 14:04 shadcn

This happens if you install the package globally and use it with without npx

remorses avatar May 21 '23 14:05 remorses

I am using [email protected] and this library is trying to install dependencies by yarn. The only way to fix it is upgrading antfu/ni and changing logic on packages/cli/src/utils/get-package-manager.ts

gmonte avatar Jan 12 '24 10:01 gmonte

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.

shadcn avatar Jul 08 '24 23:07 shadcn