执行npx@dcloudio/uvm@latest 4.41

- 发布:2025-07-16 16:53
- 更新:2025-07-17 10:55
- 阅读:592
产品分类: 其他/5+ SDK
操作步骤:
预期结果:
执行成功
执行成功
实际结果:
错误
错误
bug描述:
/Users/zhuanz0000/.npm/_npx/725dad05f6f22981/node_modules/@dcloudio/uvm/lib/version.js:47
const result = target.match(/^(\d+).(\d+).(\d+)(?:.(\d+))?(-alpha)?$/)
^
TypeError: target.match is not a function
at find (/Users/zhuanz0000/.npm/_npx/725dad05f6f22981/node_modules/@dcloudio/uvm/lib/version.js:47:25)
at start (/Users/zhuanz0000/.npm/_npx/725dad05f6f22981/node_modules/@dcloudio/uvm/bin/index.js:16:25)
at Object.<anonymous> (/Users/zhuanz0000/.npm/_npx/725dad05f6f22981/node_modules/@dcloudio/uvm/bin/index.js:30:1)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
at node:internal/main/run_main_module:28:49
Node.js v18.19.0

npx @dcloudio/uvm@latest 4.75.2025071105
这里写完整的版本号,具体的版本号列表参考这个链接 https://download1.dcloud.net.cn/hbuilderx/changelog/4.75.2025071105.html
1***@qq.com (作者)
怎么安装对应版本的依赖
2025-07-17 09:39