Ananta Khanal
Ananta Khanal

Reputation: 1

New to react could not start server got error messages any idea?

PS C:\Users\USER\Desktop\react> npm start npm ERR! code ENOENT npm ERR! syscall open npm ERR! path C:\Users\USER\Desktop\react\package.json
npm ERR! errno -4058 'C:\Users\USER\Desktop\react\package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\USER\AppData\Roaming\npm-cache_logs\2020-10-15T10_23_32_090Z-debug.log

Upvotes: 0

Views: 103

Answers (1)

daniloxxv
daniloxxv

Reputation: 865

It looks like you're trying to run an npm script such as "npm start" in a folder that doesn't have a "package.json" file. Make sure you are in your React project's working directory and try again.

Upvotes: 1

Related Questions