when generating a react project then receiving a npm error
npm error code ENOENT
npm error syscall open
npm error path C:Usersapackage.json
npm error errno -4058
npm error enoent Could not read package.json: Error: ENOENT: no such file or directory, open ‘C:Usersapackage.json’
npm error enoent This is related to npm not being able to find a file.
npm error enoent
Aborting installation. npm install –save –save-exact –loglevel error react react-dom react-scripts has failed
I just downloaded and installed the latest version of node.js, which is version 22.0 for Windows10.
When I run the npx create-react-app my-test-app
I get the error message, “Aborting installation.
npm install –save –save-exact –loglevel error react react-dom react-scripts has failed.