When you are running the code in your device, Test your antivirus settings. Antiviruses frequently mess close to with e-mail ports usage. Node.js might not understand the MITM cert your antivirus is making use of.
And https://jayjskd486378.bloggosite.com/36870950/node-js-experts-for-dummies