我在 React Native 项目中收到此错误 Invalid Directory/Users/node_modules/superagent
。我不确定为什么它会在这个位置寻找模块?我该如何解决这个问题,以便在它实际所在的 React Native 项目的 node_modules
目录中搜索模块?
最佳答案
问题是 npm3。你必须将它降级到 npm2,因为扁平化的包似乎还不能与 react-native 一起工作。
关于ios - 无效的目录/用户/node_modules/superagent 与 React Native,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33840112/