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)
4 个回复
1***@qq.com
楼主解决了吗
7***@qq.com
同样问题。。。
朕就是任性
修改 node_modules/semver.js 直接返回 true 不检测版本
Range.prototype.test = function (version) {
return true // 直接返回
if (!version) {
return false
}
y***@jytpay.com
楼主解决了吗,我也遇到了这个问题