#Nextjs 14 can't run
64 messages Ā· Page 1 of 1 (latest)
š 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)
if you run npx next info what does it show (esp node version)
also im guessing node -v shows the v20?
C:\Windows\system32>node --version
v20.11.1
this is what i get
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.
i was referring to this thing
i just uninstalled node, now i'm installing it again
then i will run the command
ah ok
i think i have seen this issue before, but i cant remember how it was fixed š
last time i fixed it by downgrading to next 12
thats a sad fix
yeah
yeah
uh
what does it show?
nothing i suppose
yeah, I mean the error
and next dev still broken i guess
let me try making a new projecty
also is this windows or linux/macos
nice
can you run where node and see if the top path is the correct one with your install
yes
and is there any others there that may be the older version
C:\Program Files\nodejs\node.exe
i really wonder where next is getting its node from
still can't run the new project?
I can create new project
but it won't start
i just created another one
just in case the other one is corrupted
hmm, same result/error?
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
it randomly started workin š
yay
PS C:\Users\matij\OneDrive\Desktop\matija programiranje\asdasd> npm run dev
[email protected] dev
next dev
ā² Next.js 14.1.4
- Local: http://localhost:3000
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
yay
i don't know what i just did
but it started working
i was about to suggest try this guys things
thats all that matters, that random do things and it works :)
This question has been marked as answered! If you have any other questions, feel free to create another post
[Click here](#1222508244526694440 message)
lol nice
also i hope your onedrive isnt syncing this folder
as... poor storage space with node_modules and it really slows down everything
just disable it imo
thats what i do