HarmonyOS react-native-pager-view安装失败
https://gitee.com/react-native-oh-library/usage-docs/blob/master/zh-cn/react-native-pager-view.md参考此链接,在vscode里面下载tgz包,然后把对应的har包直接复制到HarmonyOS项目libs目录下面,装的这个版本6.2.3-0.2.2,运行报错:
/Applications/DevEco-Studio.app/Contents/tools/ohpm/bin/ohpm install --registry https://ohpm.openharmony.cn/ohpm/ --strict_ssl true
ohpm ERROR: missing: @rnoh/react-native-openharmony@/Users/xxxx/DevecostudioProjects/ZRN-Harmony/oh_modules/.ohpm/@react-native-oh-tpl+react-native-pager-view@e9cjhtj4hvh75hojtobcga+ddfw=/oh_modules/@react-native-oh-tpl/react_native_openharmony, required by @react-native-oh-tpl/react-native-pager-view@/Users/xxxx/DevecostudioProjects/ZRN-Harmony/libs/pager_view.har
ohpm ERROR: missing: @rnoh/react-native-openharmony@/Users/xxxx/DevecostudioProjects/ZRN-Harmony/oh_modules/.ohpm/@react-native-oh-tpl+react-native-pager-view@e9cjhtj4hvh75hojtobcga+ddfw=/oh_modules/@react-native-oh-tpl/react_native_openharmony, required by @react-native-oh-tpl/react-native-pager-view@/Users/xxxxx/DevecostudioProjects/ZRN-Harmony/libs/pager_view.har
ohpm ERROR: Found exception: Error: Fetch local folder package error, /Users/xxxxx/DevecostudioProjects/ZRN-Harmony/oh_modules/.ohpm/@react-native-oh-tpl+react-native-pager-view@e9cjhtj4hvh75hojtobcga+ddfw=/oh_modules/@react-native-oh-tpl/react_native_openharmony does not exist., reached retry limit or non retryable error encountered.
ohpm ERROR: Found exception: Error: Fetch local folder package error, /Users/xxxxx/DevecostudioProjects/ZRN-Harmony/oh_modules/.ohpm/@react-native-oh-tpl+react-native-pager-view@e9cjhtj4hvh75hojtobcga+ddfw=/oh_modules/@react-native-oh-tpl/react_native_openharmony does not exist., reached retry limit or non retryable error encountered.
ohpm ERROR: ERUNNING execute tasks failed, Error: Fetch local folder package error, /Users/xxxxx/DevecostudioProjects/ZRN-Harmony/oh_modules/.ohpm/@react-native-oh-tpl+react-native-pager-view@e9cjhtj4hvh75hojtobcga+ddfw=/oh_modules/@react-native-oh-tpl/react_native_openharmony does not exist.
ohpm ERROR: ERUNNING execute tasks failed, Error: Fetch local folder package error, /Users/xxxxx/DevecostudioProjects/ZRN-Harmony/oh_modules/.ohpm/@react-native-oh-tpl+react-native-pager-view@e9cjhtj4hvh75hojtobcga+ddfw=/oh_modules/@react-native-oh-tpl/react_native_openharmony does not exist.
ohpm ERROR: Install failed, detail: Error: Fetch local folder package error, /Users/xxxxx/DevecostudioProjects/ZRN-Harmony/oh_modules/.ohpm/@react-native-oh-tpl+react-native-pager-view@e9cjhtj4hvh75hojtobcga+ddfw=/oh_modules/@react-native-oh-tpl/react_native_openharmony does not exist.
Process finished with exit code 1
HarmonyOS
赞
收藏 0
回答 1
待解决
相关问题
HarmonyOS react-native-view-shot使用
39浏览 • 1回复 待解决
HarmonyOS @react-native-oh-tpl/react-native-view-shot增量包权限问题
32浏览 • 1回复 待解决
HarmonyOS 无法安装@react-native-oh-tpl/react-native-reanimated
279浏览 • 1回复 待解决
HarmonyOS react-native项目引用native-stack插件失败
35浏览 • 1回复 待解决
HarmonyOS react-native-image-colors调用getColors失败
40浏览 • 1回复 待解决
HarmonyOS react-native-scrollable-tab-view三方库是否已支持?
192浏览 • 1回复 待解决
HarmonyOS 适配 React native
351浏览 • 1回复 待解决
HarmonyOS 集成@react-native-oh-tpl/react-native-spinkit报错
29浏览 • 1回复 待解决
HarmonyOS React Native三方库需要适配@react-native-community/art
42浏览 • 1回复 待解决
HarmonyOS react-native空工程使用Metro服务来加载bundle包失败
156浏览 • 1回复 待解决
HarmonyOS 集成@react-native-oh-tpl/react-native-pdf后App Crash
39浏览 • 1回复 待解决
HarmonyOS 是否接入React Native框架?
209浏览 • 1回复 待解决
HarmonyOS react-native-oh-library/react-navigation如何集成
40浏览 • 1回复 待解决
HarmonyOS 咨询React Native适配情况
30浏览 • 1回复 待解决
HarmonyOS react-native-screens HarmonyOS计划
38浏览 • 1回复 待解决
HarmonyOS 与react native兼容问题
299浏览 • 1回复 待解决
HarmonyOS react-native如何自行打包
32浏览 • 1回复 待解决
HarmonyOS @react-native-community/checkbox修改
123浏览 • 1回复 待解决
HarmonyOS react-native-reconnecting-websocket 报错
35浏览 • 1回复 待解决
可将tgz下载到HarmonyOS工程当前目录下,打开 entry/oh-package.json5,添加依赖,参考https://gitee.com/react-native-oh-library/usage-docs/blob/master/zh-cn/react-native-pager-view.md中引入原生端代码1后,进行ohpm install;注意前后路径问题。