deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do no

[复制链接]  18查看
易西 发表于 2025-8-23 12:14:20 | 显示全部楼层 |阅读模式
deprecated inflight@1.0.6: This module isnot supported, and leaks memory. Do not use it. Check out lru-cache if you wanta good and tested way to coalesce async requests by a key value, which is muchmore comprehensive and powerful.
npm warn deprecated glob@7.2.3: Globversions prior to v9 are no longer supported
npm warn deprecated eslint@8.57.1: Thisversion is no longer supported. Please see https://eslint.org/version-supportfor other options.
npm warn deprecated@humanwhocodes/config-array@0.13.0: Use @eslint/config-array instead
npm warn deprecated@humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
npm error code ECONNRESET
npm error syscall read
npm error errno -104
npm error network read ECONNRESET
npm error network This is a problem relatedto network connectivity.
npm error network In most cases you arebehind a proxy or have bad network settings.
npm error network
npm error network If you are behind aproxy, please make sure that the
npm error network 'proxy' config is setproperly.  See: 'npm help config'
npm notice
npm notice New major version of npmavailable! 10.9.2 -> 11.5.2
npm notice To update run: npm install -gnpm@11.5.2
npm notice
npm error A complete log of this run can befound in: /root/.npm/_logs/2025-08-23T04_07_05_128Z-debug-0.log
make[1]: *** [debian/rules:25verride_dh_auto_build] Error 152

[发帖际遇]: 易西 发帖时在路边捡到 2 金钱,偷偷放进了口袋. 幸运榜 / 衰神榜
 楼主| 易西 发表于 2025-8-23 12:16:21 | 显示全部楼层
根据您提供的错误信息和当前附件内容,我来分析并给出解决方案:

主要问题分析
‌ESLint版本过时‌:

错误提示显示您正在使用ESLint 8.57.1,该版本已不再受支持
根据ESLint版本支持政策,v8.x系列已于2024-10-05结束生命周期
‌依赖包过时‌:

inflight@1.0.6(已废弃,存在内存泄漏问题)
glob@7.2.3(v9以下版本不再支持)
@humanwhocodes配置相关包(已被@eslint命名空间下的新包替代)
‌网络连接问题‌:

ECONNRESET错误表明存在网络连接问题
可能是代理设置或网络配置问题
解决方案
‌一、升级ESLint和相关依赖‌

升级到当前支持的ESLint v9.x:

text
Copy Code
npm install eslint@latest --save-dev
替换废弃的依赖包:

用lru-cache替换inflight
用glob@9或更高版本替换glob@7.2.3
用@eslint/config-array替换@humanwhocodes/config-array
用@eslint/object-schema替换@humanwhocodes/object-schema
‌二、解决网络问题‌

检查网络连接是否正常
如果您使用代理,请配置npm代理设置:
text
Copy Code
npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080
尝试清除npm缓存:
text
Copy Code
npm cache clean --force
‌三、版本支持参考‌
当前ESLint版本支持状态:

v9.x:当前支持版本(2024-04-05发布)
v8.x:已结束支持(EOL日期2024-10-05)
更早版本均已结束支持
如需继续使用旧版本,可考虑HeroDevs提供的商业支持方案。

建议您尽快升级到当前支持的版本以获得安全更新和功能支持。如果升级过程中遇到问题,可以尝试删除node_modules和package-lock.json后重新安装依赖。

参考
[发帖际遇]: 易西 发帖时在路边捡到 2 金钱,偷偷放进了口袋. 幸运榜 / 衰神榜
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

邮箱|首页|小黑屋|吾侪 ( 蜀ICP备2020029307号-4 )

GMT+8, 2025-12-4 15:31 , Processed in 0.050580 second(s), 23 queries , APCu On.

Powered by Discuz! X3.5

Copyright © , 吾侪网

快速回复 返回顶部 返回列表