# Openweathermap fails to install

**URL:** <https://discourse.nodered.org/t/openweathermap-fails-to-install/55253>\
**Category:** General\
**Created:** [16 December 2021 01:24 UTC](https://discourse.nodered.org/t/openweathermap-fails-to-install/55253 "2021-12-16T01:24:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![melvin](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@melvin](https://discourse.nodered.org/u/melvin)\
**Post date:** [16 December 2021 01:24 UTC](https://discourse.nodered.org/t/openweathermap-fails-to-install/55253/1 "2021-12-16T01:24:05Z")

</div>

For some reason it wont install and i desperately need it, for a uni assignment  
Does anybody know how one can fix this issue?

 ![Bildschirmfoto 2021-12-16 um 02.02.46](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/f/8f0b208e96659ed2411d5a7274898ed666851192.png)

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [16 December 2021 01:35 UTC](https://discourse.nodered.org/t/openweathermap-fails-to-install/55253/2 "2021-12-16T01:35:35Z")

</div>

Hi Melvin 🙂

I'm only guessing based on what you posted but you could try **sudo chown -R 501:20 /Users/melvin/.npm**

And don't use sudo to install nodes.  
Generally it's easiest to install them from the editor Manage Palette menu option.

---

<div class="post-metadata">

**Author:** ![melvin](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@melvin](https://discourse.nodered.org/u/melvin)\
**Post date:** [16 December 2021 01:47 UTC](https://discourse.nodered.org/t/openweathermap-fails-to-install/55253/3 "2021-12-16T01:47:10Z")

</div>

Hey, i was using the manage palette and that was the error code i was getting in the terminal, i already tried what u proposed, didn't work out for me, still thanks tho

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [16 December 2021 01:59 UTC](https://discourse.nodered.org/t/openweathermap-fails-to-install/55253/4 "2021-12-16T01:59:15Z")

</div>

I don't know if .npm/\_cacache can safely be deleted but perhaps you could rename it temporarily, reboot and try installing the node again.

If it was a Raspberry Pi I'd say get a new SD card, install Node-Red, copy over your settings.js, flows.json, flows\_cred.json and package.json then run npm install. (think that's what Ive seen recommended for borked installations).  
Not so easy on a more traditional computer.

---

<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:** [16 December 2021 07:16 UTC](https://discourse.nodered.org/t/openweathermap-fails-to-install/55253/5 "2021-12-16T07:16:35Z")

</div>

The .npm directory is safe to delete completely, it will rebuild as needed.

---

<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:** [14 February 2022 07:17 UTC](https://discourse.nodered.org/t/openweathermap-fails-to-install/55253/6 "2022-02-14T07:17:11Z")

</div>

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