我一直使用 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/