node.js - React Native Ios 错误 - ENOENT : no such file or directory, uv_cwd (null))

标签 node.js reactjs react-native react-native-ios

我在运行一个新的 React Native 项目时遇到这个错误。默认起始代码没有错误,但如果更改起始文本的一个字母,我会收到此错误。

无法加载包(http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false),错误:(/Users/Pandey/Final/App.js:ENOENT:没有这样的文件或目录,uv_cwd(空))

最佳答案

我在构建 Node 模块并在测试应用程序中尝试时遇到了同样的问题。我通过关闭并重新启动 metro bundler 解决了这个问题。

我尝试过的其他方法(但对我没有用):

  1. react-native 升级
  2. 取消链接和链接模块
  3. 卸载软件包并重新安装。

希望对您有所帮助!干杯!

关于node.js - React Native Ios 错误 - ENOENT : no such file or directory, uv_cwd (null)),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51575692/

相关文章:

node.js - 在 OpenShift 上运行 Gulp 构建

mysql - 在node.js中使用promise处理MySQL返回值

php - Node.js 和 JSON

javascript - react 类型错误: Cannot read property 'replace' of undefined

javascript - 一个对象怎么可能是不可修改的呢?

javascript - 将 Chartjs 与 reactjs 结合使用

ajax - 在 React : How do I Map through JSON array of objects, setState() 中获取请求并追加?

javascript - Firestore 让函数在打开应用程序后触发,然后在更改后触发

react-native - 在 React Native 导航中指定 onPress 的名称或键

css - 根据智能手机屏幕大小调整字体大小 React native