android - react native : Error [ERR_STREAM_WRITE_AFTER_END]: write after end

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

我一直使用 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 的许可协议(protocol),我不知道这个错误是什么。

最佳答案

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

关于android - react native : Error [ERR_STREAM_WRITE_AFTER_END]: write after end,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56116102/

相关文章:

reactjs - 从 Git 将所有删除的文件恢复到当前工作目录

javascript - 在最新的mui 中LoadingButton 不见了?

javascript - 将 native 保存文件 react 到内部存储器

android - 如何自定义TouchableOpacity并在各个组件中复用

javascript - 当父状态改变时如何重新渲染子组件?

javascript - 属性文本呈现不存在 : optimizelegibility

android - 使用 gmail 发送签名的 apk 时检测到病毒

android - 把Android布局按钮做成正方形

android - 如何创建 ImageButtons 并根据变量将参数链接到它?

reactjs - 以编程方式在react-jsonschema-forms中设置默认值