#Trouble using nuxt3 with node versions greater then 18.14.0

12 messages · Page 1 of 1 (latest)

plain cairn
#

Hi!
I want to update my node version to the LTS, but i get nuxt fatal error that don't let the app begin.

The error:

Cannot start nuxt: Cannot find module 'C:/Program Files/nodejs/node_modules/@nuxt/devtools/module.cjs'

I think the issue is not with the nuxt devtools, because i've already remove the devtools package from the package.json and still the samer error.

I go to the folder "C:/Program Files/nodejs/node_modules/" and don't have the folder "@nuxt", i tjink that is the issue. Can anyone help me?

Note:
I'm using nvm for windows to manage the node versions.

#

I already tryed to create a new nuxt app, using:
pnpm dlx nuxi@latest init <project-name>
and also with
npx nuxi@latest init <project-name>

And even a clean installation get the same error

plain cairn
#

Hi!
After a terrible night, the issue was with yarn 2, that enables the corepack of the nodeJs.
Solution:
corepack disable

bright kelp
#

im getting that now with NPM not yarn....

#

only node 16.14.2 works... but I'd like to get closer to LTS

plain cairn
#

Hi @bright kelp !
have you disabled the corepack?

bright kelp
#

not 100% sure what that is... I use NVM to manage my Node versions

plain cairn
#

I also use NVM

#

Yarn needs to enable the corepack

#

but npm and pnpm don't

#

you only need to write in your terminal:
corepack disable

#

you also receives a error like i received?
"Cannot start nuxt: Cannot find module 'C:/Program Files/nodejs/node_modules/@nuxt/devtools/module.cjs'"