HarmonyOS 鸿蒙Next 安装 @xmpp/client 报找不到依赖包 glob@^7.0.0

发布于 1周前 作者 phonegap100 来自 鸿蒙OS

HarmonyOS 鸿蒙Next 安装 @xmpp/client 报找不到依赖包 glob@^7.0.0 执行以下命令安装 [@xmpp](/user/xmpp)/client"NOTFOUND package 'glob@^7.0.0'" ,有什么方法解决?

ohpm install [@xmpp](/user/xmpp)/client

输出信息:

ohpm INFO: MetaDataFetcher fetching meta info of package '[@xmpp](/user/xmpp)/client' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: fetch meta info of package '[@xmpp](/user/xmpp)/client' success https://ohpm.openharmony.cn/ohpm/[@xmpp](/user/xmpp)/client
ohpm INFO: MetaDataFetcher fetching meta info of package '[@xmpp](/user/xmpp)/stream-features' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '[@xmpp](/user/xmpp)/websocket' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '[@xmpp](/user/xmpp)/sasl-anonymous' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '[@xmpp](/user/xmpp)/resolve' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package 'babel-plugin-jsx-pragmatic' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '[@xmpp](/user/xmpp)/sasl-scram-sha-1' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '[@xmpp](/user/xmpp)/starttls' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '[@xmpp](/user/xmpp)/stream-management' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '[@xmpp](/user/xmpp)/tls' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '@babel/node' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '@babel/core' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '[@xmpp](/user/xmpp)/sasl' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '@babel/plugin-transform-react-jsx' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '[@xmpp](/user/xmpp)/iq' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '[@xmpp](/user/xmpp)/session-establishment' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '[@xmpp](/user/xmpp)/tcp' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '[@xmpp](/user/xmpp)/middleware' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '[@xmpp](/user/xmpp)/reconnect' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '[@xmpp](/user/xmpp)/sasl-plain' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '@babel/cli' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '[@xmpp](/user/xmpp)/client-core' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '[@xmpp](/user/xmpp)/resource-binding' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: fetch meta info of package '[@xmpp](/user/xmpp)/tcp' success https://ohpm.openharmony.cn/ohpm/[@xmpp](/user/xmpp)/tcp
ohpm INFO: MetaDataFetcher fetching meta info of package '[@xmpp](/user/xmpp)/connection-tcp' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: fetch meta info of package 'babel-plugin-jsx-pragmatic' success https://ohpm.openharmony.cn/ohpm/babel-plugin-jsx-pragmatic
ohpm INFO: MetaDataFetcher fetching meta info of package 'babel-plugin-syntax-jsx' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: fetch meta info of package '@babel/cli' success https://ohpm.openharmony.cn/ohpm/@babel/cli
ohpm INFO: MetaDataFetcher fetching meta info of package 'commander' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package 'source-map' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package 'fs-readdir-recursive' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package 'make-dir' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package 'convert-source-map' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package 'glob' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package 'slash' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: fetch meta info of package '[@xmpp](/user/xmpp)/client-core' success https://ohpm.openharmony.cn/ohpm/[@xmpp](/user/xmpp)/client-core
ohpm INFO: MetaDataFetcher fetching meta info of package '[@xmpp](/user/xmpp)/connection' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '[@xmpp](/user/xmpp)/jid' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '[@xmpp](/user/xmpp)/xml' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: fetch meta info of package '[@xmpp](/user/xmpp)/stream-features' success https://ohpm.openharmony.cn/ohpm/[@xmpp](/user/xmpp)/stream-features
ohpm INFO: fetch meta info of package '[@xmpp](/user/xmpp)/iq' success https://ohpm.openharmony.cn/ohpm/[@xmpp](/user/xmpp)/iq
ohpm INFO: MetaDataFetcher fetching meta info of package '[@xmpp](/user/xmpp)/events' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '[@xmpp](/user/xmpp)/id' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: fetch meta info of package '[@xmpp](/user/xmpp)/resource-binding' success https://ohpm.openharmony.cn/ohpm/[@xmpp](/user/xmpp)/resource-binding
ohpm INFO: fetch meta info of package '@babel/plugin-transform-react-jsx' success https://ohpm.openharmony.cn/ohpm/@babel/plugin-transform-react-jsx
ohpm INFO: MetaDataFetcher fetching meta info of package '@babel/types' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '@babel/plugin-syntax-jsx' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '@babel/helper-plugin-utils' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '@babel/helper-annotate-as-pure' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '@babel/helper-module-imports' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: fetch meta info of package '[@xmpp](/user/xmpp)/stream-management' success https://ohpm.openharmony.cn/ohpm/[@xmpp](/user/xmpp)/stream-management
ohpm INFO: fetch meta info of package '[@xmpp](/user/xmpp)/starttls' success https://ohpm.openharmony.cn/ohpm/[@xmpp](/user/xmpp)/starttls
ohpm INFO: fetch meta info of package '[@xmpp](/user/xmpp)/middleware' success https://ohpm.openharmony.cn/ohpm/[@xmpp](/user/xmpp)/middleware
ohpm INFO: MetaDataFetcher fetching meta info of package 'koa-compose' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '[@xmpp](/user/xmpp)/error' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: fetch meta info of package '[@xmpp](/user/xmpp)/sasl-anonymous' success https://ohpm.openharmony.cn/ohpm/[@xmpp](/user/xmpp)/sasl-anonymous
ohpm INFO: MetaDataFetcher fetching meta info of package 'sasl-anonymous' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: fetch meta info of package '[@xmpp](/user/xmpp)/reconnect' success https://ohpm.openharmony.cn/ohpm/[@xmpp](/user/xmpp)/reconnect
ohpm INFO: fetch meta info of package '[@xmpp](/user/xmpp)/websocket' success https://ohpm.openharmony.cn/ohpm/[@xmpp](/user/xmpp)/websocket
ohpm INFO: MetaDataFetcher fetching meta info of package 'ws' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: fetch meta info of package '[@xmpp](/user/xmpp)/sasl-scram-sha-1' success https://ohpm.openharmony.cn/ohpm/[@xmpp](/user/xmpp)/sasl-scram-sha-1
ohpm INFO: MetaDataFetcher fetching meta info of package 'sasl-scram-sha-1' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: fetch meta info of package '[@xmpp](/user/xmpp)/sasl' success https://ohpm.openharmony.cn/ohpm/[@xmpp](/user/xmpp)/sasl
ohpm INFO: MetaDataFetcher fetching meta info of package 'saslmechanisms' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '[@xmpp](/user/xmpp)/base64' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: fetch meta info of package '@babel/node' success https://ohpm.openharmony.cn/ohpm/@babel/node
ohpm INFO: MetaDataFetcher fetching meta info of package 'core-js' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '@babel/register' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: fetch meta info of package '[@xmpp](/user/xmpp)/resolve' success https://ohpm.openharmony.cn/ohpm/[@xmpp](/user/xmpp)/resolve
ohpm INFO: fetch meta info of package '[@xmpp](/user/xmpp)/tls' success https://ohpm.openharmony.cn/ohpm/[@xmpp](/user/xmpp)/tls
ohpm INFO: MetaDataFetcher fetching meta info of package 'node-environment-flags' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package 'regenerator-runtime' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: fetch meta info of package '[@xmpp](/user/xmpp)/session-establishment' success https://ohpm.openharmony.cn/ohpm/[@xmpp](/user/xmpp)/session-establishment
ohpm INFO: MetaDataFetcher fetching meta info of package 'v8flags' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: fetch meta info of package '@babel/core' success https://ohpm.openharmony.cn/ohpm/@babel/core
ohpm INFO: MetaDataFetcher fetching meta info of package '[@xmpp](/user/xmpp)/events' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: fetch meta info of package '[@xmpp](/user/xmpp)/sasl-plain' success https://ohpm.openharmony.cn/ohpm/[@xmpp](/user/xmpp)/sasl-plain
ohpm INFO: MetaDataFetcher fetching meta info of package 'node-fetch' from https://ohpm.openharmony.cn/ohpm/
ohpm WARN: fetch meta info of package 'glob' failed - GET https://ohpm.openharmony.cn/ohpm/glob 404( undefined )
ohpm ERROR: NOTFOUND package 'glob@^7.0.0' not found from all the registries https://ohpm.openharmony.cn/ohpm/
ohpm ERROR: missing: glob@^7.0.0, required by @babel/cli@7.16.0
ohpm ERROR: Found exception: Error: FetchPackageInfo: "glob" failed, reached retry limit or non retryable error encountered.
ohpm ERROR: Install failed, detail: Error: FetchPackageInfo: "glob" failed

更多关于HarmonyOS 鸿蒙Next 安装 @xmpp/client 报找不到依赖包 glob@^7.0.0的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html

1 回复

更多关于HarmonyOS 鸿蒙Next 安装 @xmpp/client 报找不到依赖包 glob@^7.0.0的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html


针对帖子标题“HarmonyOS 鸿蒙Next 安装 @xmpp/client 报找不到依赖包 glob@^7.0.0”的问题,以下是专业回答:

在HarmonyOS鸿蒙Next系统上安装npm包时遇到依赖包找不到的问题,通常与npm源的配置或包版本兼容性有关。针对glob@^7.0.0这个具体依赖包,可以采取以下步骤解决:

  1. 检查npm源:确保npm源配置正确,可以尝试切换至官方源或使用其他可靠的镜像源。

  2. 清理npm缓存:运行npm cache clean --force命令,清理npm缓存,然后重试安装。

  3. 手动安装依赖:尝试手动下载glob包的7.x版本,并通过本地路径安装。

  4. 检查package.json:确认package.json文件中依赖项的版本号是否正确指定为^7.0.0,或尝试更新为兼容的最新版本。

  5. 使用yarn替代npm:如果npm安装失败,可以尝试使用yarn进行安装,有时yarn能更好地处理依赖关系。

如果上述步骤仍然无法解决问题,可能是HarmonyOS系统环境或npm/yarn工具的特定问题。此时,建议直接联系官网客服寻求进一步帮助。官网地址是:https://www.itying.com/category-93-b0.html

回到顶部