PS C:\Users\xzz\Desktop\wx-xyzs-app> npx @dcloudio/uvm 4.24
D:\nodejs\node_cache\_npx\f06a30b2e514f95e\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 (D:\nodejs\node_cache\_npx\f06a30b2e514f95e\node_modules\@dcloudio\uvm\lib\version.js:47:25)
at start (D:\nodejs\node_cache\_npx\f06a30b2e514f95e\node_modules\@dcloudio\uvm\bin\index.js:16:25)
at Object.<anonymous> (D:\nodejs\node_cache\_npx\f06a30b2e514f95e\node_modules\@dcloudio\uvm\bin\index.js:30:1)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49
Node.js v20.10.0
- 发布:2024-09-21 19:05
- 更新:2024-09-23 15:34
- 阅读:68
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: window11
HBuilderX类型: 正式
HBuilderX版本号: 4.24
手机系统: Android
手机系统版本号: Android 14
手机厂商: OPPO
手机机型: 一加 Ace 2 Pro
页面类型: vue
vue版本: vue3
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
PS C:\Users\xzz\Desktop\wx-xyzs-app> npx @dcloudio/uvm 4.24
D:\nodejs\node_cache\_npx\f06a30b2e514f95e\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 (D:\nodejs\node_cache\_npx\f06a30b2e514f95e\node_modules\@dcloudio\uvm\lib\version.js:47:25)
at start (D:\nodejs\node_cache\_npx\f06a30b2e514f95e\node_modules\@dcloudio\uvm\bin\index.js:16:25)
at Object.<anonymous> (D:\nodejs\node_cache\_npx\f06a30b2e514f95e\node_modules\@dcloudio\uvm\bin\index.js:30:1)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49
Node.js v20.10.0
PS C:\Users\xzz\Desktop\wx-xyzs-app> npx @dcloudio/uvm 4.24
D:\nodejs\node_cache\_npx\f06a30b2e514f95e\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 (D:\nodejs\node_cache\_npx\f06a30b2e514f95e\node_modules\@dcloudio\uvm\lib\version.js:47:25)
at start (D:\nodejs\node_cache\_npx\f06a30b2e514f95e\node_modules\@dcloudio\uvm\bin\index.js:16:25)
at Object.<anonymous> (D:\nodejs\node_cache\_npx\f06a30b2e514f95e\node_modules\@dcloudio\uvm\bin\index.js:30:1)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49
Node.js v20.10.0
实际结果:
PS C:\Users\xzz\Desktop\wx-xyzs-app> npx @dcloudio/uvm 4.24
D:\nodejs\node_cache\_npx\f06a30b2e514f95e\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 (D:\nodejs\node_cache\_npx\f06a30b2e514f95e\node_modules\@dcloudio\uvm\lib\version.js:47:25)
at start (D:\nodejs\node_cache\_npx\f06a30b2e514f95e\node_modules\@dcloudio\uvm\bin\index.js:16:25)
at Object.<anonymous> (D:\nodejs\node_cache\_npx\f06a30b2e514f95e\node_modules\@dcloudio\uvm\bin\index.js:30:1)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49
Node.js v20.10.0
PS C:\Users\xzz\Desktop\wx-xyzs-app> npx @dcloudio/uvm 4.24
D:\nodejs\node_cache\_npx\f06a30b2e514f95e\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 (D:\nodejs\node_cache\_npx\f06a30b2e514f95e\node_modules\@dcloudio\uvm\lib\version.js:47:25)
at start (D:\nodejs\node_cache\_npx\f06a30b2e514f95e\node_modules\@dcloudio\uvm\bin\index.js:16:25)
at Object.<anonymous> (D:\nodejs\node_cache\_npx\f06a30b2e514f95e\node_modules\@dcloudio\uvm\bin\index.js:30:1)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49
Node.js v20.10.0
bug描述:
将hbuilder3.8.12更新依赖到指定版本4.24报错
2***@qq.com (作者)
这是完整的报错代码,运行了npx @dcloudio/uvm 4.24就报错const result = target.match(/^(\d+).(\d+).(\d+)(?:.(\d+))?(-alpha)?$/) ,但是我的代码里面并没有写过这行代码
2024-10-09 20:15