uni-app 打包鸿蒙应用报错 ohpm INFO: MetaDataFetcher fetching meta info of package '@uni_modules/uni-push'
uni-app 打包鸿蒙应用报错 ohpm INFO: MetaDataFetcher fetching meta info of package ‘@uni_modules/uni-push’
产品分类
uniapp/App
PC开发环境操作系统
Windows
PC开发环境操作系统版本号
win11
HBuilderX类型
正式
HBuilderX版本号
4.36
手机系统
Android
手机系统版本号
Android 15
手机厂商
华为
手机机型
华为
页面类型
vue
vue版本
vue3
打包方式
云端
项目创建方式
HBuilderX
示例代码
15:40:33.086 src/utils/uniapi.js (434:44): Error when using sourcemap for reporting an error: Can't resolve original location of error.
15:41:40.652 项目 zzt-uniapp-vue3-vite 编译成功。
15:41:42.015 安装鸿蒙工程的依赖 ...
15:41:42.918 ohpm INFO: MetaDataFetcher fetching meta info of package '[@uni_modules](/user/uni_modules)/uni-push' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '[@cashier_alipay](/user/cashier_alipay)/cashiersdk' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '[@ohos](/user/ohos)/hypium' from https://ohpm.openharmony.cn/ohpm/
ohpm ERROR: missing: @dcloudio/uts-harmony@E:\a\dist\release\a.huawei.com\entry\src\main\ets\uts, required by @
ohpm ERROR: Found exception: Error: Fetch local folder package error, E:\a\dist\release\a.huawei.com\entry\src\main\ets\uts does not exist., reached retry limit or non retryable error encountered.
ohpm ERROR: missing: @dcloudio/uni-app-harmony@E:\a\dist\release\a.huawei.com\entry\src\main\ets\uni-app-harmony, required by @
ohpm ERROR: Found exception: Error: Fetch local folder package error, E:\a\dist\release\a.huawei.com\entry\src\main\ets\uni-app-harmony does not exist., reached retry limit or non retryable error encountered.
ohpm ERROR: missing: @dcloudio/uni-app-harmony-framework@E:\a\dist\release\a.huawei.com\entry\src\main\resources\rawfile\uni-app, required by @
ohpm ERROR: Found exception: Error: Fetch local folder package error, E:\a\dist\release\a.huawei.com\entry\src\main\resources\rawfile\uni-app does not exist., reached retry limit or non retryable error encountered.
ohpm ERROR: Install failed, detail: Error: Fetch local folder package error, E:\a\dist\release\a.huawei.com\entry\src\main\ets\uts does not exist.
15:41:42.919 安装鸿蒙工程依赖失败
15:41:42.919 运行方式:打开 undefined, 导入 dist\build\app-harmony 运行。
16:00:42.422 <--- Last few GCs --->
16:00:42.422 [5016:000001FDD984CE10] 5883108 ms: Mark-sweep 2022.1 (2089.7) -> 2010.2 (2094.0) MB, 827.8 / 0.0 ms (average mu = 0.772, current mu = 0.034) allocation failure; scavenge might not succeed
16:00:42.422 [5016:000001FDD984CE10] 5884495 ms: Mark-sweep 2026.2 (2094.0) -> 2014.3 (2098.0) MB, 1355.3 / 0.0 ms (average mu = 0.559, current mu = 0.023) allocation failure; scavenge might not succeed
16:00:42.422 <--- JS stacktrace --->
16:00:42.422 FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
16:00:42.634 1: 00007FF6264E5AFF node_api_throw_syntax_error+174175
16:00:42.638 2: 00007FF626468F26 v8::internal::wasm::WasmCode::safepoint_table_offset+59926
16:00:42.638 3: 00007FF62646ABC0 v8::internal::wasm::WasmCode::safepoint_table_offset+67248
16:00:42.638 4: 00007FF626F16224 v8::Isolate::ReportExternalAllocationLimitReached+116
16:00:42.638 5: 00007FF626F015B2 v8::Isolate::Exit+674
16:00:42.638 6: 00007FF626D8327C v8::internal::EmbedderStackStateScope::ExplicitScopeForTesting+124
16:00:42.638 7: 00007FF626D8049B v8::internal::Heap::CollectGarbage+3963
16:00:42.638 8: 00007FF626D966D3 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath+2099
16:00:42.638 9: 00007FF626D96F7D v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath+93
16:00:42.638 10: 00007FF626DA6740 v8::internal::Factory::NewFillerObject+816
16:00:42.638 11: 00007FF626A97145 v8::internal::DateCache::Weekday+1349
16:00:42.638 12: 00007FF626FB4121 v8::internal::SetupIsolateDelegate::SetupHeap+558257
16:00:42.638 13: 00007FF626FB50D4 v8::internal::SetupIsolateDelegate::SetupHeap+562276
16:00:42.638 14: 00007FF5B35071B2
操作步骤
15:40:33.086 src/utils/uniapi.js (434:44): Error when using sourcemap for reporting an error: Can't resolve original location of error.
15:41:40.652 项目 zzt-uniapp-vue3-vite 编译成功。
15:41:42.015 安装鸿蒙工程的依赖 ...
15:41:42.918 ohpm INFO: MetaDataFetcher fetching meta info of package '[@uni_modules](/user/uni_modules)/uni-push' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '[@cashier_alipay](/user/cashier_alipay)/cashiersdk' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '[@ohos](/user/ohos)/hypium' from https://ohpm.openharmony.cn/ohpm/
ohpm ERROR: missing: @dcloudio/uts-harmony@E:\a\dist\release\a.huawei.com\entry\src\main\ets\uts, required by @
ohpm ERROR: Found exception: Error: Fetch local folder package error, E:\a\dist\release\a.huawei.com\entry\src\main\ets\uts does not exist., reached retry limit or non retryable error encountered.
ohpm ERROR: missing: @dcloudio/uni-app-harmony@E:\a\dist\release\a.huawei.com\entry\src\main\ets\uni-app-harmony, required by @
ohpm ERROR: Found exception: Error: Fetch local folder package error, E:\a\dist\release\a.huawei.com\entry\src\main\ets\uni-app-harmony does not exist., reached retry limit or non retryable error encountered.
ohpm ERROR: missing: @dcloudio/uni-app-harmony-framework@E:\a\dist\release\a.huawei.com\entry\src\main\resources\rawfile\uni-app, required by @
ohpm ERROR: Found exception: Error: Fetch local folder package error, E:\a\dist\release\a.huawei.com\entry\src\main\resources\rawfile\uni-app does not exist., reached retry limit or non retryable error encountered.
ohpm ERROR: Install failed, detail: Error: Fetch local folder package error, E:\a\dist\release\a.huawei.com\entry\src\main\ets\uts does not exist.
15:41:42.919 安装鸿蒙工程依赖失败
15:41:42.919 运行方式:打开 undefined, 导入 dist\build\app-harmony 运行。
16:00:42.422 <--- Last few GCs --->
16:00:42.422 [5016:000001FDD984CE10] 5883108 ms: Mark-sweep 2022.1 (2089.7) -> 2010.2 (2094.0) MB, 827.8 / 0.0 ms (average mu = 0.772, current mu = 0.034) allocation failure; scavenge might not succeed
16:00:42.422 [5016:000001FDD984CE10] 5884495 ms: Mark-sweep 2026.2 (2094.0) -> 2014.3 (2098.0) MB, 1355.3 / 0.0 ms (average mu = 0.559, current mu = 0.023) allocation failure; scavenge might not succeed
16:00:42.422 <--- JS stacktrace --->
16:00:42.422 FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
16:00:42.634 1: 00007FF6264E5AFF node_api_throw_syntax_error+174175
16:00:42.638 2: 00007FF626468F26 v8::internal::wasm::WasmCode::safepoint_table_offset+59926
16:00:42.638 3: 00007FF62646ABC0 v8::internal::wasm::WasmCode::safepoint_table_offset+67248
16:00:42.638 4: 00007FF626F16224 v8::Isolate::ReportExternalAllocationLimitReached+116
16:00:42.638 5: 00007FF626F015B2 v8::Isolate::Exit+674
16:00:42.638 6: 00007FF626D8327C v8::internal::EmbedderStackStateScope::ExplicitScopeForTesting+124
16:00:42.638 7: 00007FF626D8049B v8::internal::Heap::CollectGarbage+3963
16:00:42.638 8: 00007FF626D966D3 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath+2099
16:00:42.638 9: 00007FF626D96F7D v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath+93
16:00:42.638 10: 00007FF626DA6740 v8::internal::Factory::NewFillerObject+816
16:00:42.638 11: 00007FF626A97145 v8::internal::DateCache::Weekday+1349
16:00:42.638 12: 00007FF626FB4121 v8::internal::SetupIsolateDelegate::SetupHeap+558257
16:00:42.638 13: 00007FF626FB50D4 v8::internal::SetupIsolateDelegate::SetupHeap+562276
16:00:42.638 14: 00007FF5B35071B2
预期结果
15:40:33.086 src/utils/uniapi.js (434:44): Error when using sourcemap for reporting an error: Can't resolve original location of error.
15:41:40.652 项目 zzt-uniapp-vue3-vite 编译成功。
15:41:42.015 安装鸿蒙工程的依赖 ...
15:41:42.918 ohpm INFO: MetaDataFetcher fetching meta info of package '[@uni_modules](/user/uni_modules)/uni-push' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '[@cashier_alipay](/user/cashier_alipay)/cashiersdk' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '[@ohos](/user/ohos)/hypium' from https://ohpm.openharmony.cn/ohpm/
ohpm ERROR: missing: @dcloudio/uts-harmony@E:\a\dist\release\a.huawei.com\entry\src\main\ets\uts, required by @
ohpm ERROR: Found exception: Error: Fetch local folder package error, E:\a\dist\release\a.huawei.com\entry\src\main\ets\uts does not exist., reached retry limit or non retryable error encountered.
ohpm ERROR: missing: @dcloudio/uni-app-harmony@E:\a\dist\release\a.huawei.com\entry\src\main\ets\uni-app-harmony, required by @
ohpm ERROR: Found exception: Error: Fetch local folder package error, E:\a\dist\release\a.huawei.com\entry\src\main\ets\uni-app-harmony does not exist., reached retry limit or non retryable error encountered.
ohpm ERROR: missing: @dcloudio/uni-app-harmony-framework@E:\a\dist\release\a.huawei.com\entry\src\main\resources\rawfile\uni-app, required by @
ohpm ERROR: Found exception: Error: Fetch local folder package error, E:\a\dist\release\a.huawei.com\entry\src\main\resources\rawfile\uni-app does not exist., reached retry limit or non retryable error encountered.
ohpm ERROR: Install failed, detail: Error: Fetch local folder package error, E:\a\dist\release\a.huawei.com\entry\src\main\ets\uts does not exist.
15:41:42.919 安装鸿蒙工程依赖失败
15:41:42.919 运行方式:打开 undefined, 导入 dist\build\app-harmony 运行。
16:00:42.422 <--- Last few GCs --->
16:00:42.422 [5016:000001FDD984CE10] 5883108 ms: Mark-sweep 2022.1 (2089.7) -> 2010.2 (2094.0) MB, 827.8 / 0.0 ms (average mu = 0.772, current mu = 0.034) allocation failure; scavenge might not succeed
16:00:42.422 [5016:000001FDD984CE10] 5884495 ms: Mark-sweep 2026.2 (2094.0) -> 2014.3 (2098.0) MB, 1355.3 / 0.0 ms (average mu = 0.559, current mu = 0.023) allocation failure; scavenge might not succeed
16:00:42.422 <--- JS stacktrace --->
16:00:42.422 FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
16:00:42.634 1: 00007FF6264E5AFF node_api_throw_syntax_error+174175
16:00:42.638 2: 00007FF626468F26 v8::internal::wasm::WasmCode::safepoint_table_offset+59926
16:00:42.638 3: 00007FF62646ABC0 v8::internal::wasm::WasmCode::safepoint_table_offset+67248
16:00:42.638 4: 00007FF626F16224 v8::Isolate::ReportExternalAllocationLimitReached+116
16:00:42.638 5: 00007FF626F015B2 v8::Isolate::Exit+674
16:00:42.638 6: 00007FF626D8327C v8::internal::EmbedderStackStateScope::ExplicitScopeForTesting+124
16:00:42.638 7: 00007FF626D8049B v8::internal::Heap::CollectGarbage+3963
16:00:42.638 8: 00007FF626D966D3 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath+2099
16:00:42.638 9: 00007FF626D96F7D v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath+93
16:00:42.638 10: 00007FF626DA6740 v8::internal::Factory::NewFillerObject+816
16:00:42.638 11: 00007FF626A97145 v8::internal::DateCache::Weekday+1349
16:00:42.638 12: 00007FF626FB4121 v8::internal::SetupIsolateDelegate::SetupHeap+558257
16:00:42.638 13: 00007FF626FB50D4 v8::internal::SetupIsolateDelegate::SetupHeap+562276
16:00:42.638 14: 00007FF5B35071B2
实际结果
15:40:33.086 src/utils/uniapi.js (434:44): Error when using sourcemap for reporting an error: Can't resolve original location of error.
15:41:40.652 项目 zzt-uniapp-vue3-vite 编译成功。
15:41:42.015 安装鸿蒙工程的依赖 ...
15:41:42.918 ohpm INFO: MetaDataFetcher fetching meta info of package '[@uni_modules](/user/uni_modules)/uni-push' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '[@cashier_alipay](/user/cashier_alipay)/cashiersdk' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '[@ohos](/user/ohos)/hypium' from https://ohpm.openharmony.cn/ohpm/
ohpm ERROR: missing: @dcloudio/uts-harmony@E:\a\dist\release\a.huawei.com\entry\src\main\ets\uts, required by @
ohpm ERROR: Found exception: Error: Fetch local folder package error, E:\a\dist\release\a.huawei.com\entry\src\main\ets\uts does not exist., reached retry limit or non retryable error encountered.
ohpm ERROR: missing: @dcloudio/uni-app-harmony@E:\a\dist\release\a.huawei.com\entry\src\main\ets\uni-app-harmony, required by @
ohpm ERROR: Found exception: Error: Fetch local folder package error, E:\a\dist\release\a.huawei.com\entry\src\main\ets\uni-app-harmony does not exist., reached retry limit or non retryable error encountered.
ohpm ERROR: missing: @dcloudio/uni-app-harmony-framework@E:\a\dist\release\a.huawei.com\entry\src\main\resources\rawfile\uni-app, required by @
ohpm ERROR: Found exception: Error: Fetch local folder package error, E:\a\dist\release\a.huawei.com\entry\src\main\resources\rawfile\uni-app does not exist., reached retry limit or non retryable error encountered.
ohpm ERROR: Install failed, detail: Error: Fetch local folder package error, E:\a\dist\release\a.huawei.com\entry\src\main\ets\uts does not exist.
15:41:42.919 安装鸿蒙工程依赖失败
15:41:42.919 运行方式:打开 undefined, 导入 dist\build\app-harmony 运行。
16:00:42.422 <--- Last few GCs --->
16:00:42.422 [5016:000001FDD984CE10] 5883108 ms: Mark-sweep 2022.1 (2089.7) -> 2010.2 (2094.0) MB, 827.8 / 0.0 ms (average mu = 0.772, current mu = 0.034) allocation failure; scavenge might not succeed
16:00:42.422 [5016:000001FDD984CE10] 5884495 ms: Mark-sweep 2026.2 (2094.0) -> 2014.3 (2098.0) MB, 1355.3 / 0.0 ms (average mu = 0.559, current mu = 0.023) allocation failure; scavenge might not succeed
16:00:42.422 <--- JS stacktrace --->
16:00:42.422 FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
16:00:42.634 1: 00007FF6264E5AFF node_api_throw_syntax_error+174175
16:00:42.638 2: 00007FF626468F26 v8::internal::wasm::WasmCode::safepoint_table_offset+59926
16:00:42.638 3: 00007FF62646ABC0 v8::internal::wasm::WasmCode::safepoint_table_offset+67248
16:00:42.638 4: 00007FF626F16224 v8::Isolate::ReportExternalAllocationLimitReached+116
16:00:42.638 5: 00007FF626F015B2 v8::Isolate::Exit+674
16:00:42.638 6: 00007FF626D8327C v8::internal::EmbedderStackStateScope::ExplicitScopeForTesting+124
16:00:42.638 7: 00007FF626D8049B v8::internal::Heap::CollectGarbage+3963
16:00:42.638 8: 00007FF626D966D3 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath+2099
16:00:42.638 9: 00007FF626D96F7D v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath+93
16:00:42.638 10: 00007FF626DA6740 v8::internal::Factory::NewFillerObject+816
16:00:42.638 11: 00007FF626A97145 v8::internal::DateCache::Weekday+1349
16:00:42.638 12: 00007FF626FB4121 v8::internal::SetupIsolateDelegate::SetupHeap+558257
16:00:42.638 13: 00007FF626FB50D4 v8::internal::SetupIsolateDelegate::SetupHeap+562276
16:00:42.638 14: 00007FF5B35071B2
更多关于uni-app 打包鸿蒙应用报错 ohpm INFO: MetaDataFetcher fetching meta info of package '@uni_modules/uni-push'的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html
2 回复
使用HBuilderX 4.36新创建一个工程看看
更多关于uni-app 打包鸿蒙应用报错 ohpm INFO: MetaDataFetcher fetching meta info of package '@uni_modules/uni-push'的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html