在ubuntu上运行 puppeteer 报这个错误 求助
ubuntu version 16.04 64位
node -v
v10.15.3
npm -v
6.4.1
node -e "(async () => { try { browser = await require('puppeteer').launch(); } catch (e) { console.error(e); } })();"
ErrorEvent {
target:
WebSocket {
_events:
[Object: null prototype] { open: [Function], error: [Function] },
_eventsCount: 2,
_maxListeners: undefined,
readyState: 3,
protocol: '',
_binaryType: 'nodebuffer',
_closeFrameReceived: false,
_closeFrameSent: false,
_closeMessage: '',
_closeTimer: null,
_closeCode: 1006,
_extensions: {},
_receiver: null,
_sender: null,
_socket: null,
_isServer: false,
_redirects: 0,
url:
'ws://127.0.0.1:39325/devtools/browser/537e36d2-8184-4057-b0ae-1e52258dd8d4',
_req: null },
type: 'error',
message: 'connect ECONNREFUSED 127.0.0.1:39325',
error:
{ Error: connect ECONNREFUSED 127.0.0.1:39325
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1097:14)
errno: 'ECONNREFUSED',
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 39325 } }
大家好, when i deploy the puppeteer application on the ubuntu , this error happen, anyone help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论