#I just downloaded the next js template

1 messages · Page 1 of 1 (latest)

frigid sleet
#

What do you mean? They're asking you to downgrade your nodejs version which could possibly be a fix

#

you could also try NODE_OPTIONS="--openssl-legacy-provider" npm run dev per the SO thread

unique arrow
#

oh got itt

#

feeling so dumb bro

frigid sleet
#

Does it work now?

unique arrow
#

okay bro

#

I think there might be one issue

#

Let me explain

#

my top priority is to use one of the templates from this website

#

so I downloaded the code template

#

and ran "npm run dev"

#

and now after I ran "npm run dev"

#

it is showing this

#

error

#

'next' is not recognized as an internal or external command,
operable program or batch file.

frigid sleet
#

It doesnt look like you ve installed node_modules?

unique arrow
#

like npm install?

frigid sleet
#

yes

unique arrow
#

gotcha

#

alright I just installed node_modules

#

now running npm run dev

#

Alright, yeah now that same error appeared

#

Now I got itt

frigid sleet
#

You didnt downgrade your Node.js version

unique arrow
#

Should I now downgrade to node.js right

#

through nvm?

frigid sleet
#

you can try this first NODE_OPTIONS="--openssl-legacy-provider" npm run dev

unique arrow
#

returned an error

frigid sleet
unique arrow
#

I downgraded to 16.x via nvm

#

Everything worked just fine

#

VS Code terminal was working fine too

frigid sleet
#

Nice, happy to hear that ^^

unique arrow
#

Yet there popped up one last issue

#

This is what appeared on my screen, "Internal Server Error"

frigid sleet
#

Did you reinstall node_modules?

unique arrow
#

Run npm install again?

frigid sleet
#

yes

unique arrow
#

Got it

#

Reinstalled

#

Again

#

Internal Server Error

frigid sleet
#

what happens if you do
cd ../Templaatee
then
npm run dev

#

Otherwise I would try the terminal outside of vscode

unique arrow
#

It worked!!

#

Thanks a lot man

#

Looks like, right after downloading the next template code, I had to downgrade to npm version 16, run npm install, and then run npm run dev