# ERROR: Cannot find module 'crypto' in Code Node

**URL:** <https://community.n8n.io/t/error-cannot-find-module-crypto-in-code-node/30742>\
**Category:** Questions\
**Tags:** npm, code\
**Created:** [September 21, 2023, 10:10am UTC](https://community.n8n.io/t/error-cannot-find-module-crypto-in-code-node/30742 "2023-09-21T10:10:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roney\_Dsilva](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/roney_dsilva/32/18187_2.png) [@Roney\_Dsilva](https://community.n8n.io/u/Roney_Dsilva)\
**Post date:** [September 21, 2023, 10:10am UTC](https://community.n8n.io/t/error-cannot-find-module-crypto-in-code-node/30742/1 "2023-09-21T10:10:23Z")

</div>

## What is the error message (if any)?

ERROR: Cannot find module ‘crypto’ [line 1, for item 0]

## workflow

- **n8n version:** 1.7.1
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):** own
- **Running n8n via (Docker, npm, n8n cloud, desktop app):** Docker
- **Operating system:** Ubuntu

The crypto node works everywhere else and is inbuilt into nodejs, how come its not working here?

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [September 21, 2023, 10:29am UTC](https://community.n8n.io/t/error-cannot-find-module-crypto-in-code-node/30742/2 "2023-09-21T10:29:34Z")

</div>

Hye @Roney_Dsilva,

Have you set `NODE_FUNCTION_ALLOW_BUILTIN` so that n8n knows it is allowed to use it?

---

<div class="post-metadata">

**Author:** ![Roney\_Dsilva](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/roney_dsilva/32/18187_2.png) [@Roney\_Dsilva](https://community.n8n.io/u/Roney_Dsilva)\
**Post date:** [September 21, 2023, 10:31am UTC](https://community.n8n.io/t/error-cannot-find-module-crypto-in-code-node/30742/3 "2023-09-21T10:31:45Z")

</div>

> [@Jon](#):
>
> NODE\_FUNCTION\_ALLOW\_BUILTIN

😅 Missed that part, thanks a million @Jon

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/36532_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [September 28, 2023, 10:31am UTC](https://community.n8n.io/t/error-cannot-find-module-crypto-in-code-node/30742/4 "2023-09-28T10:31:54Z")

</div>

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