cli icon indicating copy to clipboard operation
cli copied to clipboard

--bun uses different dependencies

Open Samu-14 opened this issue 1 year ago • 1 comments

Environment

bunx nuxi info:

  • Operating System: Darwin
  • Node Version: v21.7.3
  • Nuxt Version: 3.11.2
  • CLI Version: 3.12.0
  • Nitro Version: 2.9.6
  • Package Manager: [email protected]
  • Builder: -
  • User Config: devtools
  • Runtime Modules: -
  • Build Modules: -

bunx --bun nuxi info:

  • Operating System: Darwin
  • Node Version: v22.2.0
  • Nuxt Version: 3.12.2
  • CLI Version: 3.12.0
  • Nitro Version: 2.9.6
  • Package Manager: [email protected]
  • Builder: -
  • User Config: devtools
  • Runtime Modules: -
  • Build Modules: -

Reproduction

Start a new project with bunx nuxi then downgrade nuxt to 3.11.2, run bun i and finally bun --bun dev. The running version is 3.12.2 (the latest and not the one installed)

Describe the bug

--bun uses different dependencies than the ones installed

Additional context

No response

Logs

No response

Samu-14 avatar Jun 16 '24 09:06 Samu-14

Same here, using nuxt-nightly the bunx --bun nuxi info reports 3.12.3 as the Nuxt version.

image

image

ggondim avatar Jun 19 '24 17:06 ggondim

@Samu-14 @ggondim is this still an issue?

OrbisK avatar Jun 20 '25 07:06 OrbisK

With nuxt 3.16.2 the nuxt version is the same for both commands, as below. The node version is different, but I think it's because bun uses its own internal node, I don't know how to check that.

  • Operating System: Linux

  • Node Version: v22.6.0

  • Nuxt Version: 3.16.2

  • CLI Version: 3.24.1

  • Nitro Version: 2.11.8

  • Package Manager: [email protected]

  • Operating System: Linux

  • Node Version: v20.19.2

  • Nuxt Version: 3.16.2

  • CLI Version: 3.24.1

  • Nitro Version: 2.11.8

  • Package Manager: [email protected]

Samu-14 avatar Jun 20 '25 08:06 Samu-14