Node-red/httprequest SyntaxError: Unexpected token 'export'

Hi guys

have upgrade to Node-red v.2.0.5
when i start node-red I get this message in the log
[node-red/httprequest] SyntaxError: Unexpected token 'export' (line:23)

I do not have any flows created yet...

nodejs installed v13.14.0 / npm installed v.7.20.6

The web console starts and works fine, but will I have any issues ??

Thanks Dominc

Also cross posted to Stack Overflow: node-red/httprequest] SyntaxError: Unexpected token 'export' (line:23) - Stack Overflow

That is an odd error to get. I can start Node-RED with node 13.14.0 without that error - so its strange that you are getting it.

It's impossible to say if you'll have further issues or not - you won't have the HTTP Request node available in the palette if it is hitting an error.

How exactly have you installed Node-RED?

Given node 13 isn't supported or maintained by the node.js project anymore, have you considered upgrading to a stable version?

Hi Nick
thanks for the suggestion!

I did go ahead and update running v16.6.2.
I did still keep getting that error though when starting node-red.
So I uninstalled node-red and reinstalled....that fixed it !

Thanks again

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.