I'm experiencing issues with running npm install
in my React project. I've recently updated Node.js and npm to the latest versions and set up an environment on Windows 11. However, I'm encountering multiple warnings about deprecated packages and two specific errors related to file not found (ENOENT).
Terminal Output:
npm install
npm warn deprecated [email protected]: This module is not supported, and leaks memory...
...
npm error code ENOENT
npm error syscall spawn C:\WINDOWS\system32\
npm error path C:\Users\hello\Desktop\kollege\node_modules\core-js
npm error errno -4058
npm error enoent spawn C:\WINDOWS\system32\ ENOENT
npm error enoent This is related to npm not being able to find a file.
npm error enoent
npm error A complete log of this run can be found in: C:\Users\hello\AppData\Local\npm-cache\_logs\2025-03-30T13_05_03_973Z-debug-0.log
Env Variables:
enter image description here
Additional Information:
- Node.js version: v23.10.0
- npm version: 10.9.2
- I have tried uninstalling and reinstalling several packages and even edited the PATH environment variable to include necessary directories(as suggested here).
I have followed previous advice for fixing common NPM issues, but I still can't get past these warnings and errors.
Are these warnings related to deprecated packages something I should address, and how can I resolve the ENOENT issue during installation?