SyntaxFix
Write A Post
Hire A Developer
Questions
The solution for the error is to add this line at the top of the code:
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";