错误:ReactNative错误ENOENT:无此类文件或目录,uv_cwd(null

时间:2018-08-04 02:30:42

标签: ios reactjs react-native

有什么建议纠正下面的错误吗?

Failed to load bundle(http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false) with error ENOENT:no such file or directory, uv_cwd(null)

我尝试了这个,但是没有用:

  • 本机升级react-native upgrade
  • 取消链接并链接模块
  • 卸载软件包并重新安装

我在iOS模拟器上,这是我的依赖项:

  "dependencies": {
    "firebase": "^3.7.3",
    "lodash": "^4.17.4",
    "react": "15.4.2",
    "react-native": "0.42.3",
    "react-native-material-kit": "^0.4.1",
    "react-native-vector-icons": "^4.0.0",
    "react-navigation": "^1.0.0-beta.7",
    "react-redux": "^5.0.3",
    "redux": "^3.6.0",
    "redux-thunk": "^2.2.0"
  },
  "devDependencies": {
    "babel-jest": "19.0.0",
    "babel-preset-react-native": "1.9.1",
    "jest": "19.0.2",
    "react-test-renderer": "15.4.2"
  },
  "jest": {
    "preset": "react-native"
  }

2 个答案:

答案 0 :(得分:0)

组件和程序包更新时,它们会更改其组件及其工作方式。有些破坏了应用程序,但是,如果您是从旧的(6个月以上)软件包中进行更新,则可能必须根据这些软件包的文档来更改许多代码。最好始终保持最新状态,而不是每两个月进行一次。

答案 1 :(得分:0)

将此放在终端上

$ killall node

然后再次检查