skip to Main Content

npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:UsersUserDesktopmemories_projectpackage.json
npm ERR! errno -4058
npm ERR! enoent Could not read package.json: Error: ENOENT: no such file or directory, open ‘C:UsersUserDesktopmemories_projectpackage.json’
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

I tried npm start and i got these errors

3

Answers


  1. Make sure that you are in the directory of the project, then run npm install and finally try to run npm run start.

    Login or Signup to reply.
  2. Check for package.json file exists in the current project C:UsersUserDesktopmemories_project;
    If it doesn’t exist, you need to create it

    npm init -y
    
    Login or Signup to reply.
  3. Try killing any process which might have opened the file package.json.

    Have you opened the project and package.json from any code editor like VS code ? Close it.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search