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
@Sun bear Click to see attachment
Avatar
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
I hope someone will tell us a solution
Avatar
Sun bearOP
damn
Avatar
@Sun bear did u figure it out?
Avatar
currently not
Avatar
Sun bearOP
do u have to have a app created to runn create?
Avatar
@Sun bear do u have to have a app created to runn create?
Avatar
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
@Sun bear Click to see attachment
Avatar
what is the nodejs version?
Avatar
@Yi Lon Ma what is the nodejs version?
Avatar
Sun bearOP
20.something
its the latest
Avatar
@Sun bear 20.something
Avatar
try running that command in cmd
Avatar
@Yi Lon Ma try running that command in cmd
Avatar
Sun bearOP
what the one above?
Avatar
@Sun bear what the one above?
Avatar
yeah the create-next-app
Avatar
@Yi Lon Ma yeah the create-next-app
Avatar
Sun bearOP
i tried that remember?
thats where i gwt the error
Avatar
@Sun bear thats where i gwt the error
Avatar
did you try that in command prompt or powershell?
Avatar
@Sun bear both
Avatar
how about you create a folder yourself? mkdir ~\AppData\Roaming\npm