我正在尝试通过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