# I am having a problem with nodered joystick

**URL:** <https://discourse.nodered.org/t/i-am-having-a-problem-with-nodered-joystick/79385>\
**Category:** Dashboard\
**Created:** [23 June 2023 23:59 UTC](https://discourse.nodered.org/t/i-am-having-a-problem-with-nodered-joystick/79385 "2023-06-23T23:59:20Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Surfb](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@Surfb](https://discourse.nodered.org/u/Surfb)\
**Post date:** [23 June 2023 23:59 UTC](https://discourse.nodered.org/t/i-am-having-a-problem-with-nodered-joystick/79385/1 "2023-06-23T23:59:21Z")

</div>

I am trying to use "node-red-contrib-ui-joystick" in node-red, I have node-red installed in windows version 3.0.2 and I get the following error, I hope to receive your help, thanks

 ![error](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/e/0e706268becaaa23c320ee3026e33d46566eed4e.png)  
 ![error2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/4/54f8aeebf1de7b8122ce4ab280e135e544c7826d.png)

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [24 June 2023 08:34 UTC](https://discourse.nodered.org/t/i-am-having-a-problem-with-nodered-joystick/79385/2 "2023-06-24T08:34:18Z")

</div>

How did you do the install of the node?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [24 June 2023 08:51 UTC](https://discourse.nodered.org/t/i-am-having-a-problem-with-nodered-joystick/79385/3 "2023-06-24T08:51:05Z")

</div>

Which version of nodejs are you using ?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [24 June 2023 09:08 UTC](https://discourse.nodered.org/t/i-am-having-a-problem-with-nodered-joystick/79385/4 "2023-06-24T09:08:11Z")

</div>

It might be useful if you posted the full startup log. Please copy/paste the text, not screenshot.

---

<div class="post-metadata">

**Author:** ![Surfb](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@Surfb](https://discourse.nodered.org/u/Surfb)\
**Post date:** [24 June 2023 20:44 UTC](https://discourse.nodered.org/t/i-am-having-a-problem-with-nodered-joystick/79385/5 "2023-06-24T20:44:20Z")

</div>

in manage palette, which appears in the node-red menu

---

<div class="post-metadata">

**Author:** ![Surfb](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@Surfb](https://discourse.nodered.org/u/Surfb)\
**Post date:** [24 June 2023 20:46 UTC](https://discourse.nodered.org/t/i-am-having-a-problem-with-nodered-joystick/79385/6 "2023-06-24T20:46:28Z")

</div>

I am using v12.22.9

---

<div class="post-metadata">

**Author:** ![Surfb](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@Surfb](https://discourse.nodered.org/u/Surfb)\
**Post date:** [24 June 2023 20:47 UTC](https://discourse.nodered.org/t/i-am-having-a-problem-with-nodered-joystick/79385/7 "2023-06-24T20:47:39Z")

</div>

* * *

Unexpected Node Error

* * *

Info:  
Node object is not a node-red Node  
Stack:  
Error: Module not allowed  
at Object.requireModule [as require] (/home/ubuntu/.nvm/versions/node/v14.21 .3/lib/node\_modules/node-red/node\_modules/@node-red/registry/lib/externalModules .js:104:19)  
at Object.requireModule [as require] (/home/ubuntu/.nvm/versions/node/v14.21 .3/lib/node\_modules/node-red/node\_modules/@node-red/registry/lib/util.js:51:45)  
at new JoystickNode (/home/ubuntu/.node-red/node\_modules/node-red-contrib-ui -joystick/joystick.js:61:26)  
at Object.createNode (/home/ubuntu/.nvm/versions/node/v14.21.3/lib/node\_modu les/node-red/node\_modules/@node-red/runtime/lib/flows/util.js:90:27)  
at Flow.start (/home/ubuntu/.nvm/versions/node/v14.21.3/lib/node\_modules/nod e-red/node\_modules/@node-red/runtime/lib/flows/Flow.js:206:48)  
at Object.start [as startFlows] (/home/ubuntu/.nvm/versions/node/v14.21.3/li b/node\_modules/node-red/node\_modules/@node-red/runtime/lib/flows/index.js:394:33 )

Please report this issue, including the information logged above:

> **[Issues · node-red/node-red](https://github.com/node-red/node-red/issues/)**
>
> Low-code programming for event-driven applications - Issues · node-red/node-red

* * *

Trace: Error: Module not allowed  
at Object.requireModule [as require] (/home/ubuntu/.nvm/versions/node/v14.21 .3/lib/node\_modules/node-red/node\_modules/@node-red/registry/lib/externalModules .js:104:19)  
at Object.requireModule [as require] (/home/ubuntu/.nvm/versions/node/v14.21 .3/lib/node\_modules/node-red/node\_modules/@node-red/registry/lib/util.js:51:45)  
at new JoystickNode (/home/ubuntu/.node-red/node\_modules/node-red-contrib-ui -joystick/joystick.js:61:26)  
at Object.createNode (/home/ubuntu/.nvm/versions/node/v14.21.3/lib/node\_modu les/node-red/node\_modules/@node-red/runtime/lib/flows/util.js:90:27)  
at Flow.start (/home/ubuntu/.nvm/versions/node/v14.21.3/lib/node\_modules/nod e-red/node\_modules/@node-red/runtime/lib/flows/Flow.js:206:48)  
at Object.start [as startFlows] (/home/ubuntu/.nvm/versions/node/v14.21.3/li b/node\_modules/node-red/node\_modules/@node-red/runtime/lib/flows/index.js:394:33 ) {  
code: 'module\_not\_allowed'  
}  
at new JoystickNode (/home/ubuntu/.node-red/node\_modules/node-red-contrib-ui -joystick/joystick.js:289:21)  
at Object.createNode (/home/ubuntu/.nvm/versions/node/v14.21.3/lib/node\_modu les/node-red/node\_modules/@node-red/runtime/lib/flows/util.js:90:27)  
at Flow.start (/home/ubuntu/.nvm/versions/node/v14.21.3/lib/node\_modules/nod e-red/node\_modules/@node-red/runtime/lib/flows/Flow.js:206:48)  
at Object.start [as startFlows] (/home/ubuntu/.nvm/versions/node/v14.21.3/li b/node\_modules/node-red/node\_modules/@node-red/runtime/lib/flows/index.js:394:33 )  
24 Jun 20:46:48 - [error] [ui\_joystick:bbbe5304cd79b3e2] TypeError: Cannot read property 'push' of undefined

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [24 June 2023 21:02 UTC](https://discourse.nodered.org/t/i-am-having-a-problem-with-nodered-joystick/79385/8 "2023-06-24T21:02:17Z")

</div>

That isn't the full startup log. It starts with Welcome to node red.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [24 June 2023 21:15 UTC](https://discourse.nodered.org/t/i-am-having-a-problem-with-nodered-joystick/79385/9 "2023-06-24T21:15:27Z")

</div>

Node12 doesn’t support the “module” syntax. But I also note those logs mention .nvm. In general we find it’s much harder to support issues on top of version managers as they can cause issues like this. Really it would be better if you could be using a clean install of nodejs 16 or 18

---

<div class="post-metadata">

**Author:** ![Surfb](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@Surfb](https://discourse.nodered.org/u/Surfb)\
**Post date:** [24 June 2023 21:33 UTC](https://discourse.nodered.org/t/i-am-having-a-problem-with-nodered-joystick/79385/10 "2023-06-24T21:33:58Z")

</div>

# Welcome to Node-RED

24 Jun 21:31:05 - [info] Node-RED version: v3.0.2  
24 Jun 21:31:05 - [info] Node.js version: v14.21.3  
24 Jun 21:31:05 - [info] Linux 5.19.0-1025-aws x64 LE  
24 Jun 21:31:05 - [info] Loading palette nodes  
24 Jun 21:31:06 - [info] Dashboard version 1.0.2 started at /ui  
24 Jun 21:31:06 - [info] Settings file : /home/ubuntu/.node-red/settings.js  
24 Jun 21:31:06 - [info] Context store : 'default' [module=memory]  
24 Jun 21:31:06 - [info] User directory : /home/ubuntu/.node-red  
24 Jun 21:31:06 - [warn] Projects disabled : editorTheme.projects.enabled=false  
24 Jun 21:31:06 - [info] Flows file : /home/ubuntu/.node-red/flows.json  
24 Jun 21:31:06 - [warn]

* * *

Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials  
file will not be recoverable, you will have to delete it and re-enter  
your credentials.

## You should set your own key using the 'credentialSecret' option in your settings file. Node-RED will then re-encrypt your credentials file using your chosen key the next time you deploy a change.

24 Jun 21:31:06 - [warn] Encrypted credentials not found  
24 Jun 21:31:06 - [info] Server now running at [http://127.0.0.1:1880/](http://127.0.0.1:1880/)  
24 Jun 21:31:06 - [info] Starting flows  
24 Jun 21:31:06 - [info] Started flows  
24 Jun 21:33:16 - [info] Stopping flows  
24 Jun 21:33:16 - [info] Stopped flows  
24 Jun 21:33:16 - [info] Updated flows  
24 Jun 21:33:16 - [info] Starting flows  
24 Jun 21:33:16 - [error]

* * *

Unexpected Node Error

* * *

Info:  
Node object is not a node-red Node  
Stack:  
Error: Module not allowed  
at Object.requireModule [as require] (/home/ubuntu/.nvm/versions/node/v14.21.3/lib/node\_modules/n ode-red/node\_modules/@node-red/registry/lib/externalModules.js:104:19)  
at Object.requireModule [as require] (/home/ubuntu/.nvm/versions/node/v14.21.3/lib/node\_modules/n ode-red/node\_modules/@node-red/registry/lib/util.js:51:45)  
at new JoystickNode (/home/ubuntu/.node-red/node\_modules/node-red-contrib-ui-joystick/joystick.js :61:26)  
at Object.createNode (/home/ubuntu/.nvm/versions/node/v14.21.3/lib/node\_modules/node-red/node\_mod ules/@node-red/runtime/lib/flows/util.js:90:27)  
at Flow.start (/home/ubuntu/.nvm/versions/node/v14.21.3/lib/node\_modules/node-red/node\_modules/@n ode-red/runtime/lib/flows/Flow.js:206:48)  
at start (/home/ubuntu/.nvm/versions/node/v14.21.3/lib/node\_modules/node-red/node\_modules/@node-r ed/runtime/lib/flows/index.js:394:33)

Please report this issue, including the information logged above:

> **[node-red/node-red](https://github.com/node-red/node-red/issues/)**
>
> Low-code programming for event-driven applications - node-red/node-red

* * *

Trace: Error: Module not allowed  
at Object.requireModule [as require] (/home/ubuntu/.nvm/versions/node/v14.21.3/lib/node\_modules/n ode-red/node\_modules/@node-red/registry/lib/externalModules.js:104:19)  
at Object.requireModule [as require] (/home/ubuntu/.nvm/versions/node/v14.21.3/lib/node\_modules/n ode-red/node\_modules/@node-red/registry/lib/util.js:51:45)  
at new JoystickNode (/home/ubuntu/.node-red/node\_modules/node-red-contrib-ui-joystick/joystick.js :61:26)  
at Object.createNode (/home/ubuntu/.nvm/versions/node/v14.21.3/lib/node\_modules/node-red/node\_mod ules/@node-red/runtime/lib/flows/util.js:90:27)  
at Flow.start (/home/ubuntu/.nvm/versions/node/v14.21.3/lib/node\_modules/node-red/node\_modules/@n ode-red/runtime/lib/flows/Flow.js:206:48)  
at start (/home/ubuntu/.nvm/versions/node/v14.21.3/lib/node\_modules/node-red/node\_modules/@node-r ed/runtime/lib/flows/index.js:394:33) {  
code: 'module\_not\_allowed'  
}  
at new JoystickNode (/home/ubuntu/.node-red/node\_modules/node-red-contrib-ui-joystick/joystick.js :289:21)  
at Object.createNode (/home/ubuntu/.nvm/versions/node/v14.21.3/lib/node\_modules/node-red/node\_mod ules/@node-red/runtime/lib/flows/util.js:90:27)  
at Flow.start (/home/ubuntu/.nvm/versions/node/v14.21.3/lib/node\_modules/node-red/node\_modules/@n ode-red/runtime/lib/flows/Flow.js:206:48)  
at start (/home/ubuntu/.nvm/versions/node/v14.21.3/lib/node\_modules/node-red/node\_modules/@node-r ed/runtime/lib/flows/index.js:394:33)  
24 Jun 21:33:16 - [error] [ui\_joystick:3d23eca5750225aa] TypeError: Cannot read property 'push' of un defined  
24 Jun 21:33:16 - [info] Started flows

---

<div class="post-metadata">

**Author:** ![Surfb](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@Surfb](https://discourse.nodered.org/u/Surfb)\
**Post date:** [25 June 2023 02:55 UTC](https://discourse.nodered.org/t/i-am-having-a-problem-with-nodered-joystick/79385/11 "2023-06-25T02:55:06Z")

</div>

I already updated nodejs to the version  
v18.16.1, and I keep getting the same error

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [25 June 2023 07:44 UTC](https://discourse.nodered.org/t/i-am-having-a-problem-with-nodered-joystick/79385/12 "2023-06-25T07:44:02Z")

</div>

The error message you show still shows

> [@Surfb](#):
>
> .nvm/versions/node/v14.21.3

So you are not using the nodejs you think you are

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [25 June 2023 08:04 UTC](https://discourse.nodered.org/t/i-am-having-a-problem-with-nodered-joystick/79385/13 "2023-06-25T08:04:30Z")

</div>

Fully remove nvm (I expect a search engine will tell you how to do that), and remove the .nvm folder. Then re-run the [Ubuntu install script](https://nodered.org/docs/getting-started/raspberrypi) to get you going again.

---

<div class="post-metadata">

**Author:** ![Surfb](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@Surfb](https://discourse.nodered.org/u/Surfb)\
**Post date:** [9 July 2023 20:54 UTC](https://discourse.nodered.org/t/i-am-having-a-problem-with-nodered-joystick/79385/14 "2023-07-09T20:54:05Z")

</div>

Thanks for all the help, I was able to solve the problem, it was just that I did not have the official version of the dashboard nodes

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [23 July 2023 20:55 UTC](https://discourse.nodered.org/t/i-am-having-a-problem-with-nodered-joystick/79385/15 "2023-07-23T20:55:02Z")

</div>

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