errors while creating and running reactjs app

npm ERR! code ENOENT 

npm ERR! syscall open

npm ERR! path E:\laragon\www\react\package.json

npm ERR! errno -4058

npm ERR! enoent ENOENT: no such file or directory, open 'E:\laragon\www\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\Myself\AppData\Roaming\npm-cache\_logs\2021-01-28T06_47_20_115Z-debug.log

====================================

solution:   Just CD to the app directory where package.json is and run npm start again.

error after running npm start: Module not found: Can't resolve

2 files were missing and path wasn't set correctly

Comments

Popular Posts