报错 Error: The hvigor depends on the npmrc file. Configure the npmrc file first.

204 阅读1分钟

解决办法:

touch ~/.npmrc

vim ~/.npmrc

写入如下内容

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