Next.js Discord

Discord Forum

Create app error

Unanswered
American black bear posted this in #help-forum
Open in Discord
American black bearOP
new to next, trying to follow the tutorial on the next.js site. but get this error when ever i try to create an app. I've just installed node.js and updated npm, have no clue what to do. tried to restart the pc nothing helps.

20 Replies

Plott Hound
what happens when you run npx create-next-app@latest?
American black bearOP
the same get the error from the image
i did some digging and found out its looking for at file in "appdata/roaming/npm" but there is no npm folder in /roaming, so i see what the problem is, but have no idea for how to fix it.
Plott Hound
Did you try installing npx?
@Plott Hound Did you try installing npx?
Barbary Lion
Npx is the executable of npm so I don’t think it’s that.
It looks like it can’t find the where you installed npm
Plott Hound
I think this is actually a duplicate post that was already solved
@Barbary Lion Npx is the executable of npm so I don’t think it’s that.
Plott Hound
Yeah i thought the same
Bad install
American black bearOP
v20.11.0
Bighead carp
How did you install node
American black bearOP
the wizard from there website
Bighead carp
What's the output of where node
American black bearOP
nothing
just gos to next line
Bighead carp
I would check your PATH variables to make sure node is set up correctly
American black bearOP
and how do i do that ?
have no idea about what to check for or where
Plott Hound
since you're only just setting up node and npm i would uninstall them and try again fresh. something must have gone wrong on your installation