如何解决MERN上传到Heroku失败,并显示“写EPIPE”错误
我的MERN项目无法上传到heroku。该应用程序在本地运行良好,因此我认为与heroku同步必须存在某种问题。我请求Heroku的支持,但他们说这是我的申请。
错误日志
Terminated
events.js:291
throw er; // Unhandled 'error' event
^
Error: write EPIPE
at afterWriteDispatched (internal/stream_base_commons.js:156:25)
at writeGeneric (internal/stream_base_commons.js:147:3)
at Socket._writeGeneric (net.js:785:11)
at Socket._write (net.js:797:8)
at writeOrBuffer (_stream_writable.js:352:12)
at Socket.Writable.write (_stream_writable.js:303:10)
at Logger.log (/tmp/build_985a6169/node_modules/concurrently/src/logger.js:103:31)
at Logger.logCommandText (/tmp/build_985a6169/node_modules/concurrently/src/logger.js:74:21)
at Logger.logCommandEvent (/tmp/build_985a6169/node_modules/concurrently/src/logger.js:69:14)
at SafeSubscriber._next (/tmp/build_985a6169/node_modules/concurrently/src/flow-control/log-exit.js:8:25)
Emitted 'error' event on Socket instance at:
at emitErrorNT (internal/streams/destroy.js:100:8)
at emitErrorCloseNT (internal/streams/destroy.js:68:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
errno: -32,code: 'EPIPE',syscall: 'write'
}
! Push failed
这是我从Heroku获得的错误日志,我无法理解它的正面或反面。
其他文件
package.json
{
"name": "node-react-starter","version": "1.0.0","description": "","engines": {
"node": "12.16.1","npm": "6.13.4"
},"main": "index.js","scripts": {
"test": "echo \"Error: no test specified\" && exit 1","client": "react-scripts start","server": "npx nodemon api/server.js","dev": "concurrently --kill-others-on-fail \"npm run server\" \"npm run client\"","start": "concurrently --kill-others-on-fail \"npm run server\" \"npm run client\"","build": "concurrently --kill-others-on-fail \"npm run server\" \"npm run client\""
},"keywords": [],"author": "","license": "ISC","eslintConfig": {
"extends": "react-app"
},"dependencies": {
"@testing-library/jest-dom": "^4.2.4","@testing-library/react": "^9.5.0","@testing-library/user-event": "^7.2.1","axios": "^0.19.2","body-parser": "^1.19.0","bootstrap": "^4.5.0","express": "^4.17.1","mongodb": "^3.6.0","mongoose": "^5.9.28","node": "^14.7.0","react": "^16.13.1","react-bootstrap": "^1.2.2","react-dom": "^16.13.1","react-router-dom": "^5.2.0","react-scripts": "3.4.1"
},"devDependencies": {
"concurrently": "^4.1.1","nodemon": "^1.19.1"
},"browserslist": {
"production": [
">0.2%","not dead","not op_mini all"
],"development": [
"last 1 chrome version","last 1 firefox version","last 1 safari version"
]
}
}
我不知道还有什么其他帮助,但是请提供更多文件是否有帮助。整个项目可以在my github here.
上看到版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。