最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

reactjs - NPM Installation Error in React Project - ENOENT and Deprecated Warnings - Stack Overflow

programmeradmin2浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论