I’m encountering this error everytime i try to create react app.
npx create-react-app .
npm error code ENOENT
npm error syscall spawn C:Program FilesJavajdk1.8.0_202bin
npm error path C:UsersDesktopprojectstictactoe
npm error errno -4058
npm error enoent spawn C:Program FilesJavajdk1.8.0_202bin ENOENT
npm error enoent This is related to npm not being able to find a file.
npm error enoent
I tried reinstalling node and npm, editing the system PATH
variable but it still wont work. Also, when running npm config ls -l
, the shell variable points to jdk which im unable to get rid of.
Prisha Vadhavkar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1