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

**URL:** https://discourse.nodered.org/t/node-red-httprequest-syntaxerror-unexpected-token-export/49683
**Category:** General
**Created:** [13 August 2021 12:02 UTC](https://discourse.nodered.org/t/node-red-httprequest-syntaxerror-unexpected-token-export/49683 "2021-08-13T12:02:22Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![m2iandom](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@m2iandom](https://discourse.nodered.org/u/m2iandom)
#### Post date: [13 August 2021 12:02 UTC](https://discourse.nodered.org/t/node-red-httprequest-syntaxerror-unexpected-token-export/49683/1 "2021-08-13T12:02:22Z")

</div>

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

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [13 August 2021 12:07 UTC](https://discourse.nodered.org/t/node-red-httprequest-syntaxerror-unexpected-token-export/49683/2 "2021-08-13T12:07:18Z")

</div>

Also cross posted to Stack Overflow: [node-red/httprequest] SyntaxError: Unexpected token 'export' (line:23) - Stack Overflow](https://stackoverflow.com/questions/68771854/node-red-httprequest-syntaxerror-unexpected-token-export-line23)

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?

---

<div class="post-metadata">

### Author: ![m2iandom](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@m2iandom](https://discourse.nodered.org/u/m2iandom)
#### Post date: [13 August 2021 13:04 UTC](https://discourse.nodered.org/t/node-red-httprequest-syntaxerror-unexpected-token-export/49683/3 "2021-08-13T13:04:47Z")

</div>

Hi Nick  
thanks for the suggestion!

I did go ahead and update nodejs...now 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  
Dominic

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [12 October 2021 13:05 UTC](https://discourse.nodered.org/t/node-red-httprequest-syntaxerror-unexpected-token-export/49683/4 "2021-10-12T13:05:00Z")

</div>

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