Error when trying to do installation
Unanswered
Sun bear posted this in #help-forum
Sun bearOP
So I tried to install next js with
My node.js is at the latest version, so i don't know what to do.
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.
26 Replies
Sun bearOP
had to censor my name
@Sun bear Click to see attachment
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
Sun bearOP
idk what to do about it
did u figure it out?
I hope someone will tell us a solution
Sun bearOP
damn
@Sun bear did u figure it out?
currently not
Sun bearOP
do u have to have a app created to runn create?
@Sun bear do u have to have a app created to runn create?
i think maybe its because of the npm version
try to downgrade
Sun bearOP
yeah lemme try that
Northeast Congo Lion
@Sun bear npm i -g npx
@Sun bear Click to see attachment
what is the nodejs version?
@Yi Lon Ma what is the nodejs version?
Sun bearOP
20.something
its the latest
@Sun bear 20.something
try running that command in cmd
@Yi Lon Ma try running that command in cmd
Sun bearOP
what the one above?
@Sun bear what the one above?
yeah the create-next-app
@Yi Lon Ma yeah the create-next-app
Sun bearOP
i tried that remember?
thats where i gwt the error
@Sun bear thats where i gwt the error
did you try that in command prompt or powershell?
@Yi Lon Ma did you try that in command prompt or powershell?
Sun bearOP
both
@Sun bear both
how about you create a folder yourself?
mkdir ~\AppData\Roaming\npm
@Yi Lon Ma how about you create a folder yourself? `mkdir ~\AppData\Roaming\npm`
Sun bearOP
what after that?