From 81ee737e6ce1eaf7d97458ec2ee18be7263c520b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=A3=E6=B3=BD=E4=B8=9C?= Date: Fri, 7 Feb 2025 13:05:11 +0000 Subject: [PATCH] =?UTF-8?q?update=20README.md.=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=9C=B0=E5=9D=80=EF=BC=8C=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=88=B0readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 荣泽东 --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index a14ef8c..d030d72 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,22 @@ # Nearlink Kit +## 项目地址 + +https://gitee.com/harmonyos_codelabs/nearlink-kit_-codelab/ + +## 注意 + +该项目代码有依赖: +ohpm ERROR: NOTFOUND package '@ohos/hamock@1.0.1-rc2' not found from all the registries https://ohpm.openharmony.cn/ohpm/ +ohpm ERROR: missing: @ohos/hamock@1.0.1-rc2, required by @ +ohpm ERROR: Found exception: Error: FetchPackageInfo: "@ohos/hamock" failed, reached retry limit or non retryable error encountered. +ohpm ERROR: Update failed, detail: Error: FetchPackageInfo: "@ohos/hamock" failed +如果不解决会出现上面的错误。 +首先需要修改系统配置,修改path 配置增加下面: +\DevEco Studio\tools\ohpm\bin +然后通过查看ohpm文档,进入项目目录,执行: +\HarmonyApp\nearlink> ohpm install @ohos/hamock + ## 介绍 本示例展示了使用Nearlink Kit提供的星闪广播、扫描的能力。 -- Gitee