# TypeError: Invalid host defined options

**URL:** <https://discourse.nodered.org/t/typeerror-invalid-host-defined-options/82118>\
**Category:** General\
**Tags:** http-request\
**Created:** [17 October 2023 14:22 UTC](https://discourse.nodered.org/t/typeerror-invalid-host-defined-options/82118 "2023-10-17T14:22:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [17 October 2023 14:54 UTC](https://discourse.nodered.org/t/typeerror-invalid-host-defined-options/82118/2 "2023-10-17T14:54:25Z")

</div>

Its hard to decipher the error and your request, please just provide the error as it appears

````auto
```
CMD Output
```

````

Also, are you doing more then just starting Node RED?  
if not - you can start Node RED directly and still use `pkg`

Not sure why you need this?

```auto
"scripts": ["node_modules/@node-red/nodes/core/network/21-httprequest.js"],

```

See here for packaging up Node RED : [Node-RED Standalone Executable - General - Node-RED Forum (nodered.org)](https://discourse.nodered.org/t/node-red-standalone-executable/77963/12)

---

_[View the full topic](https://discourse.nodered.org/t/typeerror-invalid-host-defined-options/82118)._
