appium+python自动化测试时,代码能正常执行,但是最后总会报错:uncaughtException: write EPIPE,找了一下没有解决的方法,来请教一下,报错具体日志如下:

Error: write EPIPE
at afterWriteDispatched (internal/stream_base_commons.js:154:25)
at writeGeneric (internal/stream_base_commons.js:145:3)
at Socket._writeGeneric (net.js:782:11)
at Socket._write (net.js:794:8)
at writeOrBuffer (_stream_writable.js:352:12)
at Socket.Writable.write (_stream_writable.js:303:10)
at Console.log (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/winston/lib/winston/transports/console.js:79:23)
at Console._write (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/winston-transport/index.js:103:17)
at doWrite (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/winston-transport/node_modules/readable-stream/lib/_stream_writable.js:428:64)
at writeOrBuffer (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/winston-transport/node_modules/readable-stream/lib/_stream_writable.js:417:5)
at Console.Writable.write (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/winston-transport/node_modules/readable-stream/lib/_stream_writable.js:334:11)
at DerivedLogger.ondata (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/readable-stream/lib/_stream_readable.js:681:20)
at DerivedLogger.emit (events.js:327:22)
at addChunk (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/readable-stream/lib/_stream_readable.js:298:12)
at readableAddChunk (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/readable-stream/lib/_stream_readable.js:280:11)
at DerivedLogger.Readable.push (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/readable-stream/lib/_stream_readable.js:241:10)
2021-08-10 17:04:47:937 uncaughtException: write EPIPE
Error: write EPIPE
at afterWriteDispatched (internal/stream_base_commons.js:154:25)
at writeGeneric (internal/stream_base_commons.js:145:3)
at Socket._writeGeneric (net.js:782:11)
at Socket._write (net.js:794:8)
at writeOrBuffer (_stream_writable.js:352:12)
at Socket.Writable.write (_stream_writable.js:303:10)
at Console.log (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/winston/lib/winston/transports/console.js:51:25)
at Console._write (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/winston-transport/index.js:103:17)
at doWrite (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/winston-transport/node_modules/readable-stream/lib/_stream_writable.js:428:64)
at writeOrBuffer (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/winston-transport/node_modules/readable-stream/lib/_stream_writable.js:417:5)
at Console.Writable.write (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/winston-transport/node_modules/readable-stream/lib/_stream_writable.js:334:11)
at DerivedLogger.ondata (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/readable-stream/lib/_stream_readable.js:681:20)
at DerivedLogger.emit (events.js:327:22)
at addChunk (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/readable-stream/lib/_stream_readable.js:298:12)
at readableAddChunk (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/readable-stream/lib/_stream_readable.js:280:11)
at DerivedLogger.Readable.push (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/readable-stream/lib/_stream_readable.js:241:10)

是node.js版本问题吗?

node哪个版本呀,换稳定版试试

我的node.js是14.4.0版本,请问我用哪个版本会稳定一些?

关闭