【问题标题】:React Native: Error [ERR_STREAM_WRITE_AFTER_END]: write after endReact Native:错误 [ERR_STREAM_WRITE_AFTER_END]:结束后写入
【发布时间】:2019-05-13 16:07:09
【问题描述】:

我一直使用 react-native-cli 或 Expo 构建 React Native 项目。

我刚刚克隆了这个包含 gradle 的 React Native 项目,我正在按照 scripts 运行 npm run build,正如我在 package.json 文件中看到的那样:

 "scripts": {
    "start": "nps",
    "test": "nps setup",
    "build": "nps build",
    "setup": "nps setup && nps appcenter",
    "postinstall": "rm -f ./node_modules/react-native/local-cli/core/__fixtures__/files/package.json"
  },

当我运行npm run build 时,我的障碍似乎与我零经验的 gradle 有关。

Error [ERR_STREAM_WRITE_AFTER_END]: write after end

我已经接受了 SDK 的许可协议,但我不知道这个错误是关于什么的。

【问题讨论】:

    标签: android reactjs react-native android-gradle-plugin


    【解决方案1】:

    您可以尝试将 node 升级到 8.10.x。它会将您的 npm 降级到 5.6.0 然后使用 npm install npm -g 更新 npm,它会将您的 npm 更新到 5.7.1

    【讨论】:

      猜你喜欢
      • 2020-06-28
      • 2021-12-15
      • 1970-01-01
      • 1970-01-01
      • 2020-06-30
      • 1970-01-01
      • 1970-01-01
      • 2017-01-08
      • 2018-09-23
      相关资源
      最近更新 更多