oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
73k stars 2.66k forks source link

"bunx jsr add ___" throws "error: Script not found "jsr"" #12465

Closed MarArMar closed 1 month ago

MarArMar commented 1 month ago

What version of Bun is running?

❯ bun --revision 1.1.18+5a0b93523

What platform is your computer?

Linux 6.5.0-10043-tuxedo x86_64 x86_64

What steps can reproduce the bug?

❯ bun upgrade Congrats! You're already on the latest version of Bun (which is v1.1.18) ❯ bunx jsr add @ryoppippi/unplugin-typia error: Script not found "jsr"

What is the expected behavior?

bun would install the dependency

As it seems implied in documentations : https://github.com/ryoppippi/unplugin-typia/issues/170 https://github.com/oven-sh/bun/discussions/11897 https://typia.io/docs/setup/#unplugin-typia => Bun tab

What do you see instead?

error: Script not found "jsr"

Additional information

No response

Jarred-Sumner commented 1 month ago

It sounds like bunx doesn't realize it's bunx and not bun. I suggest either reinstalling bun via curl https://bun.sh/install | bash or using bun x jsr to avoid this

MarArMar commented 1 month ago

After reinstalling & starting a new shell I still got the error :

curl https://bun.sh/install | bash

New shell

❯ bunx jsr add @ryoppippi/unplugin-typia
error: Script not found "jsr"

But it worked with

 ❯ bun x jsr add @ryoppippi/unplugin-typia 

👍