2***@qq.com
2***@qq.com
  • 发布:2021-04-22 19:09
  • 更新:2024-01-17 17:19
  • 阅读:723

下载自带的JS断点调试,报BUG,不能运行

分类:HBuilderX

16:56:35.596 D:\HBuilderX.3.1.8.20210406.full\HBuilderX\plugins\uniapp-debugger\node_modules\semver\semver.js:323

16:56:35.596 throw new TypeError('Invalid Version: ' + version)

16:56:35.596 ^

16:56:35.596

16:56:35.596 TypeError: Invalid Version:

16:56:35.596 at new SemVer (D:\HBuilderX.3.1.8.20210406.full\HBuilderX\plugins\uniapp-debugger\node_modules\semver\semver.js:323:11)

16:56:35.596 at compare (D:\HBuilderX.3.1.8.20210406.full\HBuilderX\plugins\uniapp-debugger\node_modules\semver\semver.js:614:10)

16:56:35.596 at Function.gt (D:\HBuilderX.3.1.8.20210406.full\HBuilderX\plugins\uniapp-debugger\node_modules\semver\semver.js:643:10)

16:56:35.596 at shell.exec (D:\HBuilderX.3.1.8.20210406.full\HBuilderX\plugins\uniapp-debugger\node_modules\puppeteer-cn-2\lib\install.js:39:16)

16:56:35.596 at D:\HBuilderX.3.1.8.20210406.full\HBuilderX\plugins\uniapp-debugger\node_modules\shelljs\src\exec.js:127:9

16:56:35.596 at ChildProcess.exithandler (child_process.js:282:5)

16:56:35.596 at emitTwo (events.js:126:13)

16:56:35.596 at ChildProcess.emit (events.js:214:7)

16:56:35.596 at maybeClose (internal/child_process.js:925:16)

16:56:35.596 at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

2021-04-22 19:09 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com

楼主解决了吗

7***@qq.com

7***@qq.com

同样问题。。。

朕就是任性

朕就是任性

修改 node_modules/semver.js 直接返回 true 不检测版本

Range.prototype.test = function (version) {
return true // 直接返回
if (!version) {
return false
}

y***@jytpay.com

y***@jytpay.com

楼主解决了吗,我也遇到了这个问题

要回复问题请先登录注册