# How to activate the Global Hooks

**URL:** <https://discourse.nodered.org/t/how-to-activate-the-global-hooks/78251>\
**Category:** General\
**Created:** [7 May 2023 18:54 UTC](https://discourse.nodered.org/t/how-to-activate-the-global-hooks/78251 "2023-05-07T18:54:23Z")\
**Posts on this page:** 1\
**Showing post:** 11

<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:** [14 May 2023 20:41 UTC](https://discourse.nodered.org/t/how-to-activate-the-global-hooks/78251/11 "2023-05-14T20:41:21Z")

</div>

> [@nru2023](#):
>
> First way : using „require(‚sqlite3‘)“ produces „cannot find module sqlite3“ (sqlite has been installed with npm with and without –g option)

1. did it install without error?
2. what were the exact `npm` commands you used?

> [@nru2023](#):
>
> and using „var sqlite3=global.get('sqlite3');“ with the error „TypeError: global.get is not a function“.

1. Where was this code written? in a function node? in a custom node/plugin?

---

_[View the full topic](https://discourse.nodered.org/t/how-to-activate-the-global-hooks/78251)._
