反应本地到Redis连接

时间:2018-06-22 18:03:10

标签: node.js react-native redis

我正在尝试通过npm redis连接到Redis服务器。在创建本机应用程序时。

我得到

急速模块图中不存在

node_modules / redis / index.js : Module net`

  

这可能与   https://github.com/facebook/react-native/issues/4968要解决,请尝试   下列:     1.清除值班员手表:watchman watch-del-all。     2.删除node_modules文件夹:rm -rf node_modules && npm install。     3.重置Metro Bundler缓存:rm -rf /tmp/metro-bundler-cache-*npm start -- --reset-cache。 4.删除急速缓存:rm -rf /tmp/haste-map-react-native-packager-*

我想知道我们在构建本机应用程序时可以使用普通的npm模块吗?

我如何通过react-native连接到Redis

0 个答案:

没有答案