登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
轻量养虾,开箱即用!低 Token + 稳定算力,Gitee & 模力方舟联合出品的 PocketClaw 正式开售!点击了解详情~
代码拉取完成,页面将自动刷新
开源项目
>
程序开发
>
网络开发包
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
46
Star
476
Fork
118
GVP
noear
/
socket.d
代码
Issues
20
Pull Requests
0
Wiki
统计
流水线
服务
JavaDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
开发画像分析
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
[问题]: 执行npm install @noear/socket.d@2.5.15出现异常,疑似node/npm版本兼容问题
已完成
#IBO5SO
hans
创建于
2025-02-23 07:13
### 如何复现: node:v22.14.0 npm:10.9.2 执行npm i @noear/socket.d或者npm install @noear/socket.d@2.5.15后出现异常日志如下: ``` npm error Invalid Version: npm error A complete log of this run can be found in: C:\Users\Administrator\AppData\Local\npm-cache\_logs\2025-02-22T23_08_51_293Z-debug-0.log ``` 日志文件内容如下: ``` 0 verbose cli D:\node\node22\node.exe D:\node\node22\node_modules\npm\bin\npm-cli.js 1 info using npm@10.9.2 2 info using node@v22.14.0 3 silly config load:file:D:\node\node22\node_modules\npm\npmrc 4 silly config load:file:D:\project\AiAdmin\snowy-lite\snowy-admin-web\.npmrc 5 silly config load:file:C:\Users\Administrator\.npmrc 6 silly config load:file:D:\node\node22\node_cache\etc\npmrc 7 verbose title npm install @noear/socket.d@2.5.15 8 verbose argv "install" "@noear/socket.d@2.5.15" 9 verbose logfile logs-max:10 dir:C:\Users\Administrator\AppData\Local\npm-cache\_logs\2025-02-22T23_06_50_809Z- 10 verbose logfile C:\Users\Administrator\AppData\Local\npm-cache\_logs\2025-02-22T23_06_50_809Z-debug-0.log 11 silly logfile start cleaning logs, removing 1 files 12 silly packumentCache heap:4345298944 maxSize:1086324736 maxEntrySize:543162368 13 silly logfile done cleaning log files 14 silly idealTree buildDeps 15 silly fetch manifest @noear/socket.d@2.5.15 16 silly packumentCache full:https://registry.npmjs.org/@noear%2fsocket.d cache-miss 17 verbose shrinkwrap failed to load node_modules/.package-lock.json out of date, updated: node_modules 18 http cache https://registry.npmjs.org/@noear%2fsocket.d 228ms (cache hit) 19 silly packumentCache full:https://registry.npmjs.org/@noear%2fsocket.d set size:116047 disposed:false 20 silly placeDep ROOT @noear/socket.d@2.5.15 OK for: snowy-admin-web@3.0.0 want: 2.5.15 21 silly fetch manifest ws@^8.16.0 22 silly packumentCache full:https://registry.npmjs.org/ws cache-miss 23 http cache https://registry.npmjs.org/ws 155ms (cache hit) 24 silly packumentCache full:https://registry.npmjs.org/ws set size:406002 disposed:false 25 silly fetch manifest bufferutil@^4.0.1 26 silly packumentCache full:https://registry.npmjs.org/bufferutil cache-miss 27 http cache https://registry.npmjs.org/bufferutil 6ms (cache hit) 28 silly packumentCache full:https://registry.npmjs.org/bufferutil set size:51033 disposed:false 29 silly fetch manifest utf-8-validate@>=5.0.2 30 silly packumentCache full:https://registry.npmjs.org/utf-8-validate cache-miss 31 http cache https://registry.npmjs.org/utf-8-validate 8ms (cache hit) 32 silly packumentCache full:https://registry.npmjs.org/utf-8-validate set size:75205 disposed:false 33 silly placeDep ROOT ws@8.18.1 OK for: @noear/socket.d@2.5.15 want: ^8.16.0 34 silly fetch manifest @esbuild/darwin-x64@0.24.2 35 silly packumentCache full:https://registry.npmjs.org/@esbuild%2fdarwin-x64 cache-miss 36 http cache https://registry.npmjs.org/@esbuild%2fdarwin-x64 7ms (cache hit) 37 silly packumentCache full:https://registry.npmjs.org/@esbuild%2fdarwin-x64 set size:162567 disposed:false 38 silly placeDep ROOT @esbuild/darwin-x64@0.24.2 OK for: esbuild@0.24.2 want: 0.24.2 39 verbose stack TypeError: Invalid Version: 39 verbose stack at new SemVer (D:\node\node22\node_modules\npm\node_modules\semver\classes\semver.js:38:13) 39 verbose stack at compare (D:\node\node22\node_modules\npm\node_modules\semver\functions\compare.js:3:32) 39 verbose stack at Object.gte (D:\node\node22\node_modules\npm\node_modules\semver\functions\gte.js:2:30) 39 verbose stack at Node.canDedupe (D:\node\node22\node_modules\npm\node_modules\@npmcli\arborist\lib\node.js:1081:32) 39 verbose stack at PlaceDep.pruneDedupable (D:\node\node22\node_modules\npm\node_modules\@npmcli\arborist\lib\place-dep.js:426:14) 39 verbose stack at new PlaceDep (D:\node\node22\node_modules\npm\node_modules\@npmcli\arborist\lib\place-dep.js:278:14) 39 verbose stack at #buildDepStep (D:\node\node22\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:920:18) 39 verbose stack at async Arborist.buildIdealTree (D:\node\node22\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:181:7) 39 verbose stack at async Promise.all (index 1) 39 verbose stack at async Arborist.reify (D:\node\node22\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\reify.js:131:5) 40 error Invalid Version: 41 silly unfinished npm timer reify 1740265611449 42 silly unfinished npm timer reify:loadTrees 1740265611450 43 silly unfinished npm timer idealTree:buildDeps 1740265611800 44 silly unfinished npm timer idealTree:node_modules/esbuild 1740265612228 45 verbose cwd D:\project\AiAdmin\snowy-lite\snowy-admin-web 46 verbose os Windows_NT 10.0.22631 47 verbose node v22.14.0 48 verbose npm v10.9.2 49 verbose exit 1 50 verbose code 1 51 error A complete log of this run can be found in: C:\Users\Administrator\AppData\Local\npm-cache\_logs\2025-02-22T23_06_50_809Z-debug-0.log ``` ### 预期结果: 应该正确安装Socket.d ### 关联版本: 最新版
### 如何复现: node:v22.14.0 npm:10.9.2 执行npm i @noear/socket.d或者npm install @noear/socket.d@2.5.15后出现异常日志如下: ``` npm error Invalid Version: npm error A complete log of this run can be found in: C:\Users\Administrator\AppData\Local\npm-cache\_logs\2025-02-22T23_08_51_293Z-debug-0.log ``` 日志文件内容如下: ``` 0 verbose cli D:\node\node22\node.exe D:\node\node22\node_modules\npm\bin\npm-cli.js 1 info using npm@10.9.2 2 info using node@v22.14.0 3 silly config load:file:D:\node\node22\node_modules\npm\npmrc 4 silly config load:file:D:\project\AiAdmin\snowy-lite\snowy-admin-web\.npmrc 5 silly config load:file:C:\Users\Administrator\.npmrc 6 silly config load:file:D:\node\node22\node_cache\etc\npmrc 7 verbose title npm install @noear/socket.d@2.5.15 8 verbose argv "install" "@noear/socket.d@2.5.15" 9 verbose logfile logs-max:10 dir:C:\Users\Administrator\AppData\Local\npm-cache\_logs\2025-02-22T23_06_50_809Z- 10 verbose logfile C:\Users\Administrator\AppData\Local\npm-cache\_logs\2025-02-22T23_06_50_809Z-debug-0.log 11 silly logfile start cleaning logs, removing 1 files 12 silly packumentCache heap:4345298944 maxSize:1086324736 maxEntrySize:543162368 13 silly logfile done cleaning log files 14 silly idealTree buildDeps 15 silly fetch manifest @noear/socket.d@2.5.15 16 silly packumentCache full:https://registry.npmjs.org/@noear%2fsocket.d cache-miss 17 verbose shrinkwrap failed to load node_modules/.package-lock.json out of date, updated: node_modules 18 http cache https://registry.npmjs.org/@noear%2fsocket.d 228ms (cache hit) 19 silly packumentCache full:https://registry.npmjs.org/@noear%2fsocket.d set size:116047 disposed:false 20 silly placeDep ROOT @noear/socket.d@2.5.15 OK for: snowy-admin-web@3.0.0 want: 2.5.15 21 silly fetch manifest ws@^8.16.0 22 silly packumentCache full:https://registry.npmjs.org/ws cache-miss 23 http cache https://registry.npmjs.org/ws 155ms (cache hit) 24 silly packumentCache full:https://registry.npmjs.org/ws set size:406002 disposed:false 25 silly fetch manifest bufferutil@^4.0.1 26 silly packumentCache full:https://registry.npmjs.org/bufferutil cache-miss 27 http cache https://registry.npmjs.org/bufferutil 6ms (cache hit) 28 silly packumentCache full:https://registry.npmjs.org/bufferutil set size:51033 disposed:false 29 silly fetch manifest utf-8-validate@>=5.0.2 30 silly packumentCache full:https://registry.npmjs.org/utf-8-validate cache-miss 31 http cache https://registry.npmjs.org/utf-8-validate 8ms (cache hit) 32 silly packumentCache full:https://registry.npmjs.org/utf-8-validate set size:75205 disposed:false 33 silly placeDep ROOT ws@8.18.1 OK for: @noear/socket.d@2.5.15 want: ^8.16.0 34 silly fetch manifest @esbuild/darwin-x64@0.24.2 35 silly packumentCache full:https://registry.npmjs.org/@esbuild%2fdarwin-x64 cache-miss 36 http cache https://registry.npmjs.org/@esbuild%2fdarwin-x64 7ms (cache hit) 37 silly packumentCache full:https://registry.npmjs.org/@esbuild%2fdarwin-x64 set size:162567 disposed:false 38 silly placeDep ROOT @esbuild/darwin-x64@0.24.2 OK for: esbuild@0.24.2 want: 0.24.2 39 verbose stack TypeError: Invalid Version: 39 verbose stack at new SemVer (D:\node\node22\node_modules\npm\node_modules\semver\classes\semver.js:38:13) 39 verbose stack at compare (D:\node\node22\node_modules\npm\node_modules\semver\functions\compare.js:3:32) 39 verbose stack at Object.gte (D:\node\node22\node_modules\npm\node_modules\semver\functions\gte.js:2:30) 39 verbose stack at Node.canDedupe (D:\node\node22\node_modules\npm\node_modules\@npmcli\arborist\lib\node.js:1081:32) 39 verbose stack at PlaceDep.pruneDedupable (D:\node\node22\node_modules\npm\node_modules\@npmcli\arborist\lib\place-dep.js:426:14) 39 verbose stack at new PlaceDep (D:\node\node22\node_modules\npm\node_modules\@npmcli\arborist\lib\place-dep.js:278:14) 39 verbose stack at #buildDepStep (D:\node\node22\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:920:18) 39 verbose stack at async Arborist.buildIdealTree (D:\node\node22\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:181:7) 39 verbose stack at async Promise.all (index 1) 39 verbose stack at async Arborist.reify (D:\node\node22\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\reify.js:131:5) 40 error Invalid Version: 41 silly unfinished npm timer reify 1740265611449 42 silly unfinished npm timer reify:loadTrees 1740265611450 43 silly unfinished npm timer idealTree:buildDeps 1740265611800 44 silly unfinished npm timer idealTree:node_modules/esbuild 1740265612228 45 verbose cwd D:\project\AiAdmin\snowy-lite\snowy-admin-web 46 verbose os Windows_NT 10.0.22631 47 verbose node v22.14.0 48 verbose npm v10.9.2 49 verbose exit 1 50 verbose code 1 51 error A complete log of this run can be found in: C:\Users\Administrator\AppData\Local\npm-cache\_logs\2025-02-22T23_06_50_809Z-debug-0.log ``` ### 预期结果: 应该正确安装Socket.d ### 关联版本: 最新版
评论 (
4
)
登录
后才可以发表评论
状态
已完成
待办的
进行中
已完成
已关闭
负责人
未设置
标签
bug
未设置
标签管理
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (
-
)
标签 (
-
)
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
参与者(3)
Java
1
https://gitee.com/noear/socket.d.git
git@gitee.com:noear/socket.d.git
noear
socket.d
socket.d
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册