antfu-collective / ni

💡 Use the right package manager
MIT License
6.25k stars 208 forks source link

If configured a global agent in `~/.nirc` and run `ni -g` inside a workspace, the global agent became `npm`. #187

Closed so1ve closed 9 months ago

so1ve commented 9 months ago

Describe the bug

If configured a global agent in ~/.nirc and run ni -g inside a workspace, the global agent became npm.

Reproduction

https://github.com/antfu/ni is enough to reproduce

System Info

N/A

Used Package Manager

pnpm

Validations

so1ve commented 9 months ago

An older report: https://github.com/antfu/ni/issues/183