HarmonyOS 鸿蒙Next执行ohpm install @ohos/component 提示404
HarmonyOS 鸿蒙Next执行ohpm install @ohos/component 提示404
控制台输出:
PS D:\Windows-Desktop\MyApplication2> ohpm install @ohos/component
ohpm INFO: MetaDataFetcher fetching meta info of package ‘@ohos/component’ from https://ohpm.openharmony.cn/ohpm/
ohpm WARN: fetch meta info of package ‘@ohos/component’ failed - GET https://ohpm.openharmony.cn/ohpm/@ohos/component 404( undefined )
ohpm ERROR: NOTFOUND package ‘@ohos/component@latest’ not found from all the registries https://ohpm.openharmony.cn/ohpm/
ohpm ERROR: missing: @ohos/component@latest, required by @
ohpm ERROR: Found exception: Error: FetchPackageInfo: “@ohos/component” failed, reached retry limit or non retryable error encountered.
ohpm ERROR: ERUNNING execute tasks failed, Error: FetchPackageInfo: “@ohos/component” failed
ohpm ERROR: Install failed, detail: Error: FetchPackageInfo: “@ohos/component” failed
你这是在三方库没有[@ohos](/user/ohos)/component 这个包吧,所以才报的错,检查下哪里引入的这个三方包
三方库链接:https://ohpm.openharmony.cn/#/cn/result?sortedType=relevancy&page=1&q=