antfu-collective / ni

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

fix: `bun x` instead of `bunx` #219

Closed MAttila42 closed 1 month ago

MAttila42 commented 1 month ago

Description

Even though the Bun documentation says that the command bunx is just an alias of bun x, in reality bunx often doesn't work when bun x does. I suggest using bun x every time.

Linked Issues

No issue was created

Additional context

To demonstrate the difference between bunx and bun x, just try to init a Nuxt project with each. bunx fails while bun x successfully runs.

This may not be the case with all operating systems and/or all Bun installation methods. I'm using WIndows 11 and Bun was installed via npm.