ui
ui copied to clipboard
Use lockfile to determine package manager. Or use https://github.com/antfu/ni
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.
Yeah we're using npm_config_user_agent
. Is there a way I can reproduce above? Happy to accept a PR with lockfile detection.
This happens if you install the package globally and use it with without npx
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
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.