Next.js Discord

Discord Forum

creating new project throws error on windows

Answered
Longtail tuna posted this in #help-forum
Open in Discord
Longtail tunaOP
how to resolve this error ?
npx create-next-app@latest running this command in cmd throws error

npm ERR! code ENOENT npm ERR! syscall lstat npm ERR! path C:\Users\Max\AppData\Roaming\npm npm ERR! errno -4058 npm ERR! enoent ENOENT: no such file or directory, lstat 'C:\Users\Max\AppData\Roaming\npm' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent

using
node -v
v18.17.0

npm -v
9.6.7
Answered by Longtail tuna
after downgrading node to v18.15.0 works
View full answer

1 Reply

Longtail tunaOP
after downgrading node to v18.15.0 works
Answer