Next.js Discord

Discord Forum

Error when trying to do installation

Unanswered
Sun bear posted this in #help-forum
Open in Discord
Avatar
Sun bearOP
So I tried to install next js with npx create-next-app@latest, but when I run it in Powershell, I get this error in the picture below.
My node.js is at the latest version, so i don't know what to do.
Image

26 Replies

Avatar
Sun bearOP
Image
had to censor my name
Avatar
Löwchen
I also had my error when trying to deploy my next app to vercel: ENOENT: no such file or directory, lstat
idk why it happens
Avatar
Sun bearOP
idk what to do about it
did u figure it out?
Avatar
Löwchen
I hope someone will tell us a solution
Avatar
Sun bearOP
damn
Avatar
Löwchen
currently not
Avatar
Sun bearOP
do u have to have a app created to runn create?
Avatar
Löwchen
i think maybe its because of the npm version
try to downgrade
Avatar
Sun bearOP
yeah lemme try that
Avatar
Northeast Congo Lion
@Sun bear npm i -g npx
Avatar
Yi Lon Ma
what is the nodejs version?
Avatar
Sun bearOP
20.something
its the latest
Avatar
Yi Lon Ma
try running that command in cmd
Avatar
Sun bearOP
what the one above?
Avatar
Yi Lon Ma
yeah the create-next-app
Avatar
Sun bearOP
i tried that remember?
thats where i gwt the error
Avatar
Yi Lon Ma
did you try that in command prompt or powershell?
Avatar
Sun bearOP
both
Avatar
Yi Lon Ma
how about you create a folder yourself? mkdir ~\AppData\Roaming\npm
Avatar
Sun bearOP
what after that?