鸿蒙打包hvigorw clean报错No npmrc file is matched in the current user folder解决
问题
在执行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/
原文地址:https://blog.csdn.net/u010358168/article/details/143415182
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!