arduino-led-rgb icon indicating copy to clipboard operation
arduino-led-rgb copied to clipboard

Error running index.js

Open mightylastingcode opened this issue 5 years ago • 0 comments

I need help. Hardware is running good with simple RGB test.js. But, I cannot create the connection to your network. I have the correct key pairs. Could you tell me what I did wrong?

Thank you. Michael

Log from the terminal window.

michael@michael-Inspiron-5551:~/Documents/nodejs/helloworld_uno$ node index.js 1577854374187 Available /dev/ttyACM0
1577854374207 Connected /dev/ttyACM0
1577854377962 Repl Initialized

ready /home/michael/Documents/nodejs/helloworld_uno/node_modules/pubnub/node.js/lib/xdr.js:12 return 'EventEmitter' in http.Agent.super_; ^

TypeError: Cannot use 'in' operator to search for 'EventEmitter' in undefined at keepAliveIsEmbedded (/home/michael/Documents/nodejs/helloworld_uno/node_modules/pubnub/node.js/lib/xdr.js:12:25) at Object.createInstance (/home/michael/Documents/nodejs/helloworld_uno/node_modules/pubnub/node.js/lib/xdr.js:185:9) at Function.CREATE_PUBNUB (/home/michael/Documents/nodejs/helloworld_uno/node_modules/pubnub/node.js/pubnub.js:75:25) at Board. (/home/michael/Documents/nodejs/helloworld_uno/index.js:18:34) at Board.emit (events.js:215:7) at Board.EventEmitter.emit (domain.js:475:20) at processTicksAndRejections (internal/process/task_queues.js:75:11) michael@michael-Inspiron-5551:~/Documents/nodejs/helloworld_uno$

mightylastingcode avatar Jan 01 '20 04:01 mightylastingcode