# Node-Red will not start after adding the open weather nodes

**URL:** <https://discourse.nodered.org/t/node-red-will-not-start-after-adding-the-open-weather-nodes/83652>\
**Category:** Industrial\
**Created:** [12 December 2023 21:18 UTC](https://discourse.nodered.org/t/node-red-will-not-start-after-adding-the-open-weather-nodes/83652 "2023-12-12T21:18:38Z")\
**Posts on this page:** 12\
**Page:** 2

<div class="post-metadata">

**Author:** ![ralphwetzel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ralphwetzel/32/53713_2.png) [@ralphwetzel](https://discourse.nodered.org/u/ralphwetzel)\
**Post date:** [13 December 2023 08:22 UTC](https://discourse.nodered.org/t/node-red-will-not-start-after-adding-the-open-weather-nodes/83652/21 "2023-12-13T08:22:16Z")

</div>

In such a situation the runtime part of the node might have raised an error & crashed.  
This should be evident when Node-RED starts and displayed in your `output.txt` (if you create it as proposed before) - right after the launching sequnce...

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [13 December 2023 09:02 UTC](https://discourse.nodered.org/t/node-red-will-not-start-after-adding-the-open-weather-nodes/83652/22 "2023-12-13T09:02:08Z")

</div>

Maybe time for a Black-Ops!  
And a Disclaimer, I am not responsible if this creates a black hole in the Space Time Continuum

1. Backup (duh!!), and make sure Node RED is not running

2. Open up `C:\Users\nbmaintenance\.node-red\package.json` in notepad  
(or your fav JSON editor - i.e VSCode 😉).

3. Delete the folder `C:\Users\nbmaintenance\.node-red\node_modules`

4. `CMD` into `C:\Users\nbmaintenance\.node-red`  
and run `npm install`

---

<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:** [13 December 2023 11:43 UTC](https://discourse.nodered.org/t/node-red-will-not-start-after-adding-the-open-weather-nodes/83652/23 "2023-12-13T11:43:03Z")

</div>

I think the same effect should be obtained by going into the .node-red folder and running  
`npm remove node-red-node-openweathermap`  
`npm install node-red-node-openweathermap`  
If you get errors running the install then post the error here.

---

<div class="post-metadata">

**Author:** ![jts450](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@jts450](https://discourse.nodered.org/u/jts450)\
**Post date:** [13 December 2023 16:32 UTC](https://discourse.nodered.org/t/node-red-will-not-start-after-adding-the-open-weather-nodes/83652/24 "2023-12-13T16:32:41Z")

</div>

> [@Colin](#):
>
> npm remove node-red-node-openweathermap

I can run the uninstall command but this PC does not have internet access to the node library for installing nodes. I do have some whitelisted websites (including [openweathermap.org](http://openweathermap.org)) though. I have been installing nodes by accessing the node-red instance from a browser on another PC that has full internet access. Should I just try re-installing this in the same way?

---

<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:** [13 December 2023 16:49 UTC](https://discourse.nodered.org/t/node-red-will-not-start-after-adding-the-open-weather-nodes/83652/25 "2023-12-13T16:49:24Z")

</div>

I believe that the server needs access to the node library in order to install nodes, whether you do it using the command line or a browser. Running the browser on another PC should not make any difference. That may be why it has not installed correctly.  
What do you see when you run the npm install command?

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [13 December 2023 16:54 UTC](https://discourse.nodered.org/t/node-red-will-not-start-after-adding-the-open-weather-nodes/83652/26 "2023-12-13T16:54:12Z")

</div>

You could use the http request node to make a http request to the openweather map api, it is well documented. Then there would be no need to install the openweathermap node.

---

<div class="post-metadata">

**Author:** ![jts450](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@jts450](https://discourse.nodered.org/u/jts450)\
**Post date:** [13 December 2023 21:03 UTC](https://discourse.nodered.org/t/node-red-will-not-start-after-adding-the-open-weather-nodes/83652/27 "2023-12-13T21:03:42Z")

</div>

Lol...

I checked this location in the package.json file and I do not see the openweathermap here

---

<div class="post-metadata">

**Author:** ![jts450](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@jts450](https://discourse.nodered.org/u/jts450)\
**Post date:** [13 December 2023 21:09 UTC](https://discourse.nodered.org/t/node-red-will-not-start-after-adding-the-open-weather-nodes/83652/28 "2023-12-13T21:09:01Z")

</div>

I also thought the 2 different ways of installing should not make a difference but cant help but wonder if that is the reason I am having issues. I assume if i run the install command it will fail because I have not internet access. I know there is a way to download the nodepackage to an online pc and move it over but I cant remember how to do that.

I might just use @E1cid suggestion and use the http request node but I will look into the functionality difference

---

<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:** [13 December 2023 21:24 UTC](https://discourse.nodered.org/t/node-red-will-not-start-after-adding-the-open-weather-nodes/83652/29 "2023-12-13T21:24:12Z")

</div>

> [@jts450](#):
>
> I assume if i run the install command it will fail because I have not internet access.

How did you attempt to install it previously? You have at least managed to partially install it. That is why I would be interested to see the result of attempting to install it.

> [@jts450](#):
>
> I do have some whitelisted websites

Can you not whitelist the npm repository?

---

<div class="post-metadata">

**Author:** ![jts450](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@jts450](https://discourse.nodered.org/u/jts450)\
**Post date:** [13 December 2023 23:26 UTC](https://discourse.nodered.org/t/node-red-will-not-start-after-adding-the-open-weather-nodes/83652/30 "2023-12-13T23:26:45Z")

</div>

> [@Colin](#):
>
> How did you attempt to install it previously? You have at least managed to partially install it. That is why I would be interested to see the result of attempting to install it.

I have previously installed all nodes by going the the node-red instance using the IP address of the offline PC in the browser of an online PC and opening up the manage pallet to install.

I may be able to whitelist the npm repository site... I guess I was just not sure there was only one repository website to whitelist?

have trouble?

---

<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:** [14 December 2023 09:44 UTC](https://discourse.nodered.org/t/node-red-will-not-start-after-adding-the-open-weather-nodes/83652/31 "2023-12-14T09:44:16Z")

</div>

> [@jts450](#):
>
> I have previously installed all nodes by going the the node-red instance using the IP address of the offline PC in the browser of an online PC and opening up the manage pallet to install.

When I tried that with a system that cannot access the internet I got an error installing it, and the log shows that it failed to do anything at all, so I don't know how, on your system, Manage Palette appears to think it is installed. That is why I would like to see the result of attempting to install it via the command line.

**Edit** added 'on your system' before Manage Palette as I realised that what I had written was ambiguous.

---

<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:** [12 February 2024 09:45 UTC](https://discourse.nodered.org/t/node-red-will-not-start-after-adding-the-open-weather-nodes/83652/32 "2024-02-12T09:45:09Z")

</div>

Closed on 12 February 2024 09:45 UTC

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

[Previous page](https://discourse.nodered.org/t/node-red-will-not-start-after-adding-the-open-weather-nodes/83652.md?page=1)
