问题

在执行hvigorw clean等命令时,报错如下:

Error: The hvigor depends on the npmrc file. No npmrc file is matched in the current user folder. Configure the npmrc file first

解决方案

在用户当前目录下新建.npmrc文件,并配置如下:

registry=https://repo.huaweicloud.com/repository/npm/
@ohos:registry=https://repo.harmonyos.com/npm/

在这里插入图片描述

Logo

讨论HarmonyOS开发技术,专注于API与组件、DevEco Studio、测试、元服务和应用上架分发等。

更多推荐