React Native:错误 [ERR_STREAM_WRITE_AFTER_END]:结束后写入

React Native: Error [ERR_STREAM_WRITE_AFTER_END]: write after end

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

我刚刚克隆了这个包含 gradle 的 React Native 项目,我正在 运行ning npm run build 根据 scripts 我在 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 的许可协议,我不知道这个错误是什么意思。

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