npm ERR! code ETIMEDOUT
npm ERR! syscall connect
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmjs.org/@react-navigation%2Fnative failed, reason: connect ETIMEDOUT 104.16.25.34:443
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings. C:\rohdemo\zxxx>npm install --force npm WARN using --force Recommended protections disabled. ] / idealTree:zgyt_oa_app_3: sill idealTree buildDeps
npm ERR! code ETARGET npm ERR! notarget No matching version found for @ohos/hvigor-ohos-plugin@5.0.0 npm ERR! notarget In most cases you or one of your dependencies are requesting npm ERR! notarget a package version that does not exist.
registry=https://repo.huaweicloud.com/repository/npm/
@ohos:registry=https://repo.harmonyos.com/npm/
打开package.json添加devDependencies配置并保存。
@ohos/hvigor-ohos-plugin的版本需要与当前@ohos/hvigor的版本保持一致。