When I try to run any program of Node.js in my machine it give this error, I tried using nodemon to see if it works using nodemon but it does not work. I have check and the code is working my other machines but not this one for some reason.
I had a similar problem. The sample uri that their website generates, does not do percent encoding for special characters such as @ or '. So just copy pasting that in my js script was not working. When I did that manually, it worked.
See this:
URL encoded