# NODE\_FUNCTION\_ALLOW\_BUILTIN and Docker-Compose

**URL:** <https://community.n8n.io/t/node-function-allow-builtin-and-docker-compose/2166>\
**Category:** Questions\
**Created:** [August 27, 2020, 4:43pm UTC](https://community.n8n.io/t/node-function-allow-builtin-and-docker-compose/2166 "2020-08-27T16:43:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ccarns](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ccarns/32/1710_2.png) [@ccarns](https://community.n8n.io/u/ccarns)\
**Post date:** [August 27, 2020, 4:43pm UTC](https://community.n8n.io/t/node-function-allow-builtin-and-docker-compose/2166/1 "2020-08-27T16:43:07Z")

</div>

Extension of original question:

> [@Upload File: Multipart-formdata](http://community.n8n.io/t/upload-file-multipart-formdata/1543/8):
>
> Hey @Kirst, sorry for the late response. Ok the first example, the one with axios, will never get to the console.log as you are calling an async function without the await keyword. The function is returning before the HTTP request responds. With regard to the second example, it will not work either because the request library do not return a promise and the keyword await as far as I know works when the function you are calling return a promise. To make work you have to either require request-p…

If I am using the docker-compose file shouldn’t I be able to add a line to the environment section of n8n then restart and it should work with the proposed solution:

```
environment: 
- NODE_FUNCTION_ALLOW_BUILTIN=request-promise-native

```

I am still getting an error “Access denied to require ‘request-promise-native’”"

Thanks in advance.

Using n8n Version: 0.78.0

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [August 27, 2020, 4:45pm UTC](https://community.n8n.io/t/node-function-allow-builtin-and-docker-compose/2166/2 "2020-08-27T16:45:15Z")

</div>

Welcome to the community @ccarns!

The problem is that “request-promise-native” is not a built-in Node.js library. For that reason do you have to use instead of `NODE_FUNCTION_ALLOW_BUILTIN` the variable `NODE_FUNCTION_ALLOW_EXTERNAL`

Then everything should work fine.

Here the documentation:

> **[Configuration | n8n Docs](https://docs.n8n.io/getting-started/installation/advanced/configuration.html)**
>
> n8n is an extendable workflow automation tool that enables you to connect anything to everything via its open, fair-code model.

---

<div class="post-metadata">

**Author:** ![ccarns](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ccarns/32/1710_2.png) [@ccarns](https://community.n8n.io/u/ccarns)\
**Post date:** [August 27, 2020, 4:50pm UTC](https://community.n8n.io/t/node-function-allow-builtin-and-docker-compose/2166/3 "2020-08-27T16:50:56Z")

</div>

Jan thanks so much for such a fast response.

PS Great work on this project- its amazing.

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [August 27, 2020, 4:58pm UTC](https://community.n8n.io/t/node-function-allow-builtin-and-docker-compose/2166/4 "2020-08-27T16:58:05Z")

</div>

Great to hear that I could help you and that you enjoy n8n!

Have fun!

---

<div class="post-metadata">

**Author:** ![engowen](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/engowen/32/1611_2.png) [@engowen](https://community.n8n.io/u/engowen)\
**Post date:** [August 27, 2020, 4:58pm UTC](https://community.n8n.io/t/node-function-allow-builtin-and-docker-compose/2166/5 "2020-08-27T16:58:23Z")

</div>

@jan I was looking at this too and wondering if I can inject the NODE\_FUNCTION\_ALLOW\_BUILTIN variables into n8n\dist\config\index.js if so how, or do I set it in the n8n.cmd file for my windows deployment. Thanks.

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [August 27, 2020, 5:03pm UTC](https://community.n8n.io/t/node-function-allow-builtin-and-docker-compose/2166/6 "2020-08-27T17:03:17Z")

</div>

Ah no, users are never supposed to change anything within n8n. So in both locations nothing should be changed ever.

If you want to set that environment variable. In windows that should be:

```nohighlight
SET NODE_FUNCTION_ALLOW_BUILTIN=crypto

```

And then you can start n8n normally.
