Next.js Discord

Discord Forum

New to nextjs and this problem is popping.

Answered
Bergamasco Shepherd posted this in #help-forum
Open in Discord
Bergamasco ShepherdOP
PS D:\Learning> npm run dev
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path D:\Learning\package.json
npm ERR! errno -4058
npm ERR! enoent Could not read package.json: Error: ENOENT: no such file or directory, open 'D:\Learning\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
Answered by Bergamasco Shepherd
earlier we could do "." to keep same name but it doesnt work anymore, so you have to cd into the folder you made
View full answer

4 Replies

have you create the project with npx create-next-app@latest ?
Bergamasco ShepherdOP
It worked
Bergamasco ShepherdOP
earlier we could do "." to keep same name but it doesnt work anymore, so you have to cd into the folder you made
Answer
Bergamasco ShepherdOP
so now it worked