'no such file or directory 'package.json' while using npm start in mac
When I use the npm start command this error shows up:
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /Users/kratichoudhary/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/Users/kratichoudhary/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
Solution 1:[1]
Usually this issue happens whenever you try to npm start in the wrong directory.
Make sure your terminal is pointing to the same directory where your package.json file is and then run the command.
If the problem is still not solved, please share some more details
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Jorge |
