# Problem to var require = global.get('require'); - 3 scheet to 1 xlsx

**URL:** <https://discourse.nodered.org/t/problem-to-var-require-global-get-require-3-scheet-to-1-xlsx/98195>\
**Category:** General\
**Tags:** function-node\
**Created:** [18 July 2025 07:29 UTC](https://discourse.nodered.org/t/problem-to-var-require-global-get-require-3-scheet-to-1-xlsx/98195 "2025-07-18T07:29:30Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [18 July 2025 08:05 UTC](https://discourse.nodered.org/t/problem-to-var-require-global-get-require-3-scheet-to-1-xlsx/98195/2 "2025-07-18T08:05:53Z")

</div>

Hi, firstly your flow was not correctly formatted for the forum so I corrected it for you

In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote `````)

````auto
``` 
   code goes here 
```

````

You can edit and correct your post by clicking the pencil ✏ icon.

See this post for more details - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

* * *

Next, I moved this thread to #General since you are not #Developing Nodes

* * *

Lastly, `require` is NOT really recommended or even necessary. I would use the `Setup` tab and add your npm module in there. See the below article for how to:

> **[Use any npm module in Node-RED • FlowFuse](https://flowfuse.com/blog/2023/06/import-modules/)**
>
> Node-RED has an incredibly rich resource of integrations available, but sometimes you need that little extra. This shows you how.

---

_[View the full topic](https://discourse.nodered.org/t/problem-to-var-require-global-get-require-3-scheet-to-1-xlsx/98195)._
