arduino-led-rgb
arduino-led-rgb copied to clipboard
Error running index.js
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.