# Thingzi-logic-climate, MODULE\_NOT\_FOUND

**URL:** <https://discourse.nodered.org/t/thingzi-logic-climate-module-not-found/54866>\
**Category:** General\
**Created:** [8 December 2021 11:02 UTC](https://discourse.nodered.org/t/thingzi-logic-climate-module-not-found/54866 "2021-12-08T11:02:55Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabikm](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fabikm/32/52259_2.png) [@fabikm](https://discourse.nodered.org/u/fabikm)\
**Post date:** [8 December 2021 11:02 UTC](https://discourse.nodered.org/t/thingzi-logic-climate-module-not-found/54866/1 "2021-12-08T11:02:56Z")

</div>

Hi,

Does anyone have the similar problem with the node after installing?

**thingzi-logic-climate, MODULE\_NOT\_FOUND**

It can´t be use, it stuck the whole system with the error message.

Tested also after/configuration:  
raspberry pi zero & raspberry pi 4  
apt-get update && apt-get upgrade  
**npm@8.2.0**  
**Node-RED v2.1.3**  
Installed from the Node-RED pallet and then also from the LINUX command line  
npm install thiangzi-logic-climate (in the /.node-red folder)

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/7/b743c8579b024ff1695238f18ce0ec0fc4b8dd7d.png)

![FlowsStoppedDueToMissingNodeTypes](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/a/7a3570586ec39d5a2875510c8e0fe90e1076af97.png)

Thank you,

Martin

---

<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:** [8 December 2021 11:24 UTC](https://discourse.nodered.org/t/thingzi-logic-climate-module-not-found/54866/2 "2021-12-08T11:24:02Z")

</div>

Open a terminal and go into your .node-red folder then run  
`npm remove thingzi-logic-climate`  
then  
`npm install thingzi-logic-climate`  
and post the full output from the install command here.  
Copy/paste please rather than screenshot. When pasting use the `</>` button at the top of the forum entry window.

**[Edit]** If that does not show any errors then stop node red and start it again in a terminal and post the output here.

---

<div class="post-metadata">

**Author:** ![fabikm](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fabikm/32/52259_2.png) [@fabikm](https://discourse.nodered.org/u/fabikm)\
**Post date:** [8 December 2021 11:58 UTC](https://discourse.nodered.org/t/thingzi-logic-climate-module-not-found/54866/3 "2021-12-08T11:58:00Z")

</div>

```auto
pi@raspberrypi:~/.node-red $ npm remove thingzi-logic-climate

removed 1 package, and audited 87 packages in 2s

19 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

pi@raspberrypi:~/.node-red $ npm install thingzi-logic-climate

added 1 package, and audited 88 packages in 2s

19 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

```

---

<div class="post-metadata">

**Author:** ![fabikm](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fabikm/32/52259_2.png) [@fabikm](https://discourse.nodered.org/u/fabikm)\
**Post date:** [8 December 2021 12:00 UTC](https://discourse.nodered.org/t/thingzi-logic-climate-module-not-found/54866/4 "2021-12-08T12:00:59Z")

</div>

```auto
pi@raspberrypi:~ $ node-red-stop
Stop Node-RED

Use node-red-start to start Node-RED again

pi@raspberrypi:~ $ node-red-start

Start Node-RED

Once Node-RED has started, point a browser at http://192.168.168.165:1880
On Pi Node-RED works better with the Firefox or Chrome browser

Use node-red-stop to stop Node-RED
Use node-red-start to start Node-RED again
Use node-red-log to view the recent log output
Use sudo systemctl enable nodered.service to autostart Node-RED at every boot
Use sudo systemctl disable nodered.service to disable autostart on boot

To find more nodes and example flows - go to http://flows.nodered.org

Starting as a systemd service.
8 Dec 11:58:59 - [info]
Welcome to Node-RED
===================
8 Dec 11:58:59 - [info] Node-RED version: v2.1.3
8 Dec 11:58:59 - [info] Node.js version: v14.18.2
8 Dec 11:58:59 - [info] Linux 5.10.63-v7l+ arm LE
8 Dec 11:59:00 - [info] Loading palette nodes
8 Dec 11:59:01 - [warn] ------------------------------------------------------
8 Dec 11:59:01 - [warn] [thingzi-logic-climate/climate] Error: Cannot find modul e 'moment'
Require stack:
- /home/pi/.node-red/node_modules/thingzi-logic-climate/climate.js
- /usr/lib/node_modules/node-red/node_modules/@node-red/registry/lib/loader.js
- /usr/lib/node_modules/node-red/node_modules/@node-red/registry/lib/index.js
- /usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/index. js
- /usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/index.js
- /usr/lib/node_modules/node-red/lib/red.js
- /usr/lib/node_modules/node-red/red.js
8 Dec 11:59:01 - [warn] ------------------------------------------------------
8 Dec 11:59:01 - [info] Settings file : /home/pi/.node-red/settings.js
8 Dec 11:59:01 - [info] Context store : 'default' [module=memory]
8 Dec 11:59:01 - [info] User directory : /home/pi/.node-red
8 Dec 11:59:01 - [warn] Projects disabled : git command not found
8 Dec 11:59:01 - [info] Flows file : /home/pi/.node-red/flows.json
8 Dec 11:59:01 - [info] Server now running at http://127.0.0.1:1880/
8 Dec 11:59:01 - [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.
---------------------------------------------------------------------
8 Dec 11:59:01 - [info] Starting flows
8 Dec 11:59:01 - [info] Started flows

```

---

<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:** [8 December 2021 13:16 UTC](https://discourse.nodered.org/t/thingzi-logic-climate-module-not-found/54866/5 "2021-12-08T13:16:53Z")

</div>

That suggests an error in the node packaging. Try  
`npm install moment`  
And stop/start node red again.

---

<div class="post-metadata">

**Author:** ![fabikm](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fabikm/32/52259_2.png) [@fabikm](https://discourse.nodered.org/u/fabikm)\
**Post date:** [8 December 2021 14:01 UTC](https://discourse.nodered.org/t/thingzi-logic-climate-module-not-found/54866/7 "2021-12-08T14:01:32Z")

</div>

Dear Colin,

Thank you soooo much!!!!  
After 12 hours of testing and testing.... it finally works!!! 🙂  
I´m really happy and I hope this helps others with a similar problem.

This was the key command `npm install moment` under the /.node-red folder.  
Then `sudo reboot`

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/9/e93113465a028dfadbad8250ce24cfd0d6e1085b.png)

Have a nice day,

Martin.

---

<div class="post-metadata">

**Author:** ![fabikm](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fabikm/32/52259_2.png) [@fabikm](https://discourse.nodered.org/u/fabikm)\
**Post date:** [8 December 2021 14:58 UTC](https://discourse.nodered.org/t/thingzi-logic-climate-module-not-found/54866/8 "2021-12-08T14:58:08Z")

</div>

There is one more - minor problem ☹

```auto
Error: Cannot find module 'is-utf8'
Require stack:
- /home/pi/.node-red/node_modules/thingzi-logic-climate/mqtt.js
- /home/pi/.node-red/node_modules/thingzi-logic-climate/climate.js
- /usr/lib/node_modules/node-red/node_modules/@node-red/registry/lib/loader.js
- /usr/lib/node_modules/node-red/node_modules/@node-red/registry/lib/index.js
- /usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/index.js
- /usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/index.js
- /usr/lib/node_modules/node-red/lib/red.js
- /usr/lib/node_modules/node-red/red.js

```

---

<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:** [8 December 2021 15:03 UTC](https://discourse.nodered.org/t/thingzi-logic-climate-module-not-found/54866/9 "2021-12-08T15:03:17Z")

</div>

Did you try installing that too?  
It seems there are some serious issues with the packaging of that node. Unfortunately it appears that has not got a github page so it is not possible to submit issues. I generally avoid nodes that do not have github pages, or some other method of seeing and submitting issues.

---

<div class="post-metadata">

**Author:** ![fabikm](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fabikm/32/52259_2.png) [@fabikm](https://discourse.nodered.org/u/fabikm)\
**Post date:** [8 December 2021 15:05 UTC](https://discourse.nodered.org/t/thingzi-logic-climate-module-not-found/54866/10 "2021-12-08T15:05:02Z")

</div>

> [@Colin](#):
>
> I generally avoid nodes that do not have github pages, or some other method of seeing and submitting issues.

Just solved with `npm i is-utf8` under `/.node-red` 🙂 uffff

Thx again for your help 😉

---

<div class="post-metadata">

**Author:** ![bryzi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bryzi/32/30918_2.png) [@bryzi](https://discourse.nodered.org/u/bryzi)\
**Post date:** [7 January 2022 14:56 UTC](https://discourse.nodered.org/t/thingzi-logic-climate-module-not-found/54866/11 "2022-01-07T14:56:43Z")

</div>

Hi, im the author of that node and yes, its on my list to move to github. For some reason the dependencies were not listed properly and were masked by them being there in node red but removed in a subsequent version. I'll update this (and put it on github) 🙂

---

<div class="post-metadata">

**Author:** ![bryzi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bryzi/32/30918_2.png) [@bryzi](https://discourse.nodered.org/u/bryzi)\
**Post date:** [7 January 2022 16:45 UTC](https://discourse.nodered.org/t/thingzi-logic-climate-module-not-found/54866/12 "2022-01-07T16:45:23Z")

</div>

> **[GitHub - thingzi/thingzi-logic-climate: Climate logic node for nodered](https://github.com/thingzi/thingzi-logic-climate)**
>
> Climate logic node for nodered. Contribute to thingzi/thingzi-logic-climate development by creating an account on GitHub.

---

<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:** [8 March 2022 16:45 UTC](https://discourse.nodered.org/t/thingzi-logic-climate-module-not-found/54866/13 "2022-03-08T16:45:54Z")

</div>

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