Ashley Solomon
Ashley Solomon
NNuxt
Created by Ashley Solomon on 11/11/2024 in #❓・help
Devtool referring to other node version
Nuxt 3.
➜ client git:(800-tk_205) ✗ bun -v
1.1.34
➜ client git:(800-tk_205) ✗ node -v
v20.8.1
➜ client git:(800-tk_205) ✗ nvm use 20
Now using node v20.8.1 (npm v10.1.0)
➜ client git:(800-tk_205) ✗ rm -rf bun.lockb package-lock.json node_modules .nuxt
➜ client git:(800-tk_205) ✗ bun install
[0.39ms] ".env"
bun install v1.1.34 (5e5e7c60)

$ nuxt prepare
ℹ Using Tailwind CSS from ~/assets/css/tailwind.css nuxt:tailwindcss 16:19:10

ERROR Nuxt module should be a function: /Users/ashcslmn/.nvm/versions/node/v16.17.1/lib/node_modules/@nuxt/devtools/module.cjs 16:19:11

at loadNuxtModuleInstance (node_modules/@nuxt/kit/dist/index.mjs:2460:11)
at async installModule (node_modules/@nuxt/kit/dist/index.mjs:2389:47)
at async initNuxt (node_modules/nuxt/dist/index.mjs:4669:5)
at async loadNuxt (node_modules/nuxt/dist/index.mjs:4839:5)
at async loadNuxt (node_modules/@nuxt/kit/dist/index.mjs:2627:19)
at async Object.run (node_modules/nuxi/dist/chunks/prepare.mjs:61:18)
at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi.bd0a2fa0.mjs:1648:16)
at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi.bd0a2fa0.mjs:1639:11)
at async runMain$1 (node_modules/nuxi/dist/shared/nuxi.bd0a2fa0.mjs:1777:7)



ERROR Nuxt module should be a function: /Users/ashcslmn/.nvm/versions/node/v16.17.1/lib/node_modules/@nuxt/devtools/module.cjs 16:19:11

error: postinstall script from "nuxt-app" exited with 1
➜ client git:(800-tk_205) ✗
➜ client git:(800-tk_205) ✗ bun -v
1.1.34
➜ client git:(800-tk_205) ✗ node -v
v20.8.1
➜ client git:(800-tk_205) ✗ nvm use 20
Now using node v20.8.1 (npm v10.1.0)
➜ client git:(800-tk_205) ✗ rm -rf bun.lockb package-lock.json node_modules .nuxt
➜ client git:(800-tk_205) ✗ bun install
[0.39ms] ".env"
bun install v1.1.34 (5e5e7c60)

$ nuxt prepare
ℹ Using Tailwind CSS from ~/assets/css/tailwind.css nuxt:tailwindcss 16:19:10

ERROR Nuxt module should be a function: /Users/ashcslmn/.nvm/versions/node/v16.17.1/lib/node_modules/@nuxt/devtools/module.cjs 16:19:11

at loadNuxtModuleInstance (node_modules/@nuxt/kit/dist/index.mjs:2460:11)
at async installModule (node_modules/@nuxt/kit/dist/index.mjs:2389:47)
at async initNuxt (node_modules/nuxt/dist/index.mjs:4669:5)
at async loadNuxt (node_modules/nuxt/dist/index.mjs:4839:5)
at async loadNuxt (node_modules/@nuxt/kit/dist/index.mjs:2627:19)
at async Object.run (node_modules/nuxi/dist/chunks/prepare.mjs:61:18)
at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi.bd0a2fa0.mjs:1648:16)
at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi.bd0a2fa0.mjs:1639:11)
at async runMain$1 (node_modules/nuxi/dist/shared/nuxi.bd0a2fa0.mjs:1777:7)



ERROR Nuxt module should be a function: /Users/ashcslmn/.nvm/versions/node/v16.17.1/lib/node_modules/@nuxt/devtools/module.cjs 16:19:11

error: postinstall script from "nuxt-app" exited with 1
➜ client git:(800-tk_205) ✗
steps above, I am trying to install howerver the devtools is always referring to global node js.
Any idea on how to fix it? TIA
5 replies