#Nextjs 14 can't run

64 messages Ā· Page 1 of 1 (latest)

split turtle
#

Hello I've recently upgraded to next 14 and started a new project and anytime i try npm run dev i get an issue that tells me that I'm running an older and unsupported version of node which I don't even have installed. (I have node v20). Can someone help me? I've tried using nvm and uninstalling node completley.

clear marshBOT
#

šŸ”Ž This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

šŸ•µļø Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

āœ… You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

glossy notch
#

if you run npx next info what does it show (esp node version)

#

also im guessing node -v shows the v20?

split turtle
#

C:\Windows\system32>node --version
v20.11.1

split turtle
#

but when i run the npm run dev
you are using node.js 17.3.0. for next.js, node.js version >= v18.17.0 is required.

glossy notch
split turtle
#

then i will run the command

glossy notch
#

ah ok

#

i think i have seen this issue before, but i cant remember how it was fixed 😭

split turtle
#

last time i fixed it by downgrading to next 12

glossy notch
#

thats a sad fix

split turtle
#

yeah

winged depot
#

yeah

split turtle
#

i don't want next 12 😦

#

the command wont even run npx next info

glossy notch
#

uh

winged depot
glossy notch
#

nothing i suppose

winged depot
#

yeah, I mean the error

split turtle
#

blank space

glossy notch
#

and next dev still broken i guess

split turtle
#

let me try making a new projecty

glossy notch
split turtle
#

windows

#

10

glossy notch
#

nice

#

can you run where node and see if the top path is the correct one with your install

split turtle
#

yes

glossy notch
#

and is there any others there that may be the older version

split turtle
#

C:\Program Files\nodejs\node.exe

glossy notch
#

i really wonder where next is getting its node from

split turtle
#

me too

#

i deleted every folder of node

#

and even in registry

winged depot
#

still can't run the new project?

split turtle
#

I can create new project

#

but it won't start

#

i just created another one

#

just in case the other one is corrupted

winged depot
#

hmm, same result/error?

glossy notch
#

last thing, is node --print "process.versions.node" correct (this is what the next uses to get it)... but there has to be someting more broken

#

for example deleting node_modules and npm cache like npm config get cache.... but i cant see how that would fix it

split turtle
#

it randomly started workin šŸ’€

glossy notch
#

yay

split turtle
#

PS C:\Users\matij\OneDrive\Desktop\matija programiranje\asdasd> npm run dev

[email protected] dev
next dev

ā–² Next.js 14.1.4

Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry

Next.js by Vercel is the full-stack React framework for the web.

#

yay

#

i don't know what i just did

#

but it started working

glossy notch
#

i was about to suggest try this guys things

split turtle
#

i deleted some files in temp

#

and it started working for some reason

glossy notch
split turtle
#

finally i can be antisocial again

#

thank you soo much ā¤ļø

clear marshBOT
#
āœ… Success!

This question has been marked as answered! If you have any other questions, feel free to create another post

Jump to answer

[Click here](#1222508244526694440 message)

glossy notch
glossy notch
#

as... poor storage space with node_modules and it really slows down everything

winged depot
#

just disable it imo

glossy notch
#

thats what i do