简体   繁体   English

react-native应用程序无法在ios中运行

[英]react-native app not working in ios

Hi I have downloaded this sample app https://github.com/iZaL/my-appointment . 嗨,我已经下载了此示例应用程序https://github.com/iZaL/my-appointment when i am runing this getting error .can you help me on this issue my-appointment-master/src/containers/Category/Category.js: Unable to find this module in its module map or any of the node_modules directories under /Users/node_modules/react-native-alphabetlistview and its parent directories 当我运行此错误时,您能否在此问题上为我提供帮助my-appointment-master / src / containers / Category / Category.js:在其模块映射或/ Users /下的任何node_modules目录中找不到该模块node_modules / react-native-alphabetlistview及其父目录

This might be related to https://github.com/facebook/react-native/issues/4968 To resolve try the following: 1. Clear watchman watches: watchman watch-del-all . 这可能与https://github.com/facebook/react-native/issues/4968有关要解决此问题,请尝试以下操作:1.清除watchman watchs: watchman watch-del-all 2. Delete the node_modules folder: rm -rf node_modules && npm install . 2.删除node_modules文件夹: rm -rf node_modules && npm install 3. Reset packager cache: rm -fr $TMPDIR/react-* or npm start -- --reset-cache . 3.重置打包程序缓存: rm -fr $TMPDIR/react-*npm start -- --reset-cache i have tried to reset this all but getting same issue 我试图重设这一切,但遇到相同的问题

It looks like the project package.json is missing the dependency react-native-alphabetlistview . 看起来项目package.json缺少依赖项react-native-alphabetlistview

You can install it via npm install react-native-alphabetlistview --save 您可以通过npm install react-native-alphabetlistview --save安装它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM