Next.js Discord

Discord Forum

How can I create a new Next.js app using Node 16?

Answered
Bighead carp posted this in #help-forum
Open in Discord
Bighead carpOP
My current macOS doesn't support versions of Node superior to 16, this hasn't been an issue with Next.js in the past. But now that I'm trying to create a new Next.js app, it tells me I need Node 18.

So instead of using the command latest (npx create-next-app@latest), I used an older version (npx create-next-app@13.4.9) and it still tells me I need Node 18 in order to run it. What's baffling is that older Next.js apps (using 13.4.9 Next version) is run fine on my machine.

What do I do?
Answered by Bighead carp
ok, I made it work. Turns out Next 13.4.9 was still too new for Node 16. But I used just 13 and it seems to be working.
View full answer

21 Replies

Bighead carpOP
weirdly, I'm getting this. It's like it's ignoring my command to use the older Next.js version
Bighead carpOP
there's no workaround? @aardani
Why doesn’t your Mac support versions greater than 16?
@linesofcode Why doesn’t your Mac support versions greater than 16?
Bighead carpOP
It's an old Mac. It theoretically could support Node 18 if I upgrade to a newer MacOS but it's already on its last legs and don't want to force it and lose losing the mac. I'm already planning to get a new one in the near future, but not immediately. So I need to stay with Node 16 for a bit, unfortunately.
well
there are cloud code spaces, if ure into that :/
Have you tried using nvm
To install node 18?
Bighead carpOP
what I don't understand I why can't I use an older version of Next.js
Without upgrading your os
@linesofcode Have you tried using nvm
Bighead carpOP
didn't work unfortunately
If my old Next.js projects are still running fine, why can't I start a new one using one of those older versions (that are still 13, by the way, and using the new features) ?
Idk but you could just copy the old project code base
And use that as a starting template
Instead of going through create next app
@linesofcode Idk but you could just copy the old project code base
Bighead carpOP
interesting idea! Will wait if anyone else finds a more straighforward way, but yours could work. Thanks a lot
Bighead carpOP
ok, I made it work. Turns out Next 13.4.9 was still too new for Node 16. But I used just 13 and it seems to be working.
Answer
Bighead carpOP
Thanks to everyone. I still plan to update to Node 18 soon, though.