1
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\Myname\Desktop\god\package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\Myname\Desktop\god\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\Myname\AppData\Roaming\npm-cache\_logs\2021-09-02T07_53_41_547Z-debug.log```
1
  • 1
    it says package.json file doesn't exist in that directory. looks lie you are running npm in the wrong directory Commented Sep 2, 2021 at 8:12

1 Answer 1

1

You should check you have a package.json file in the directory you run npm install because the error isn't linked with npm.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.