# Help, I messed up weather-icons-lite

**URL:** https://discourse.nodered.org/t/help-i-messed-up-weather-icons-lite/37796
**Category:** General
**Created:** [20 December 2020 13:44 UTC](https://discourse.nodered.org/t/help-i-messed-up-weather-icons-lite/37796 "2020-12-20T13:44:23Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![thomasvjohansen](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thomasvjohansen/32/32779_2.png) [@thomasvjohansen](https://discourse.nodered.org/u/thomasvjohansen)
#### Post date: [20 December 2020 13:44 UTC](https://discourse.nodered.org/t/help-i-messed-up-weather-icons-lite/37796/1 "2020-12-20T13:44:24Z")

</div>

Hi, I messed up.

when I updated with "npm i weather-icons-lite" it updated and I could see the changes in css.  
but node-red didnt reconize them.

At some point, after I messed up..... when I now update a palette in nodered it cant update because of missing writeaccess to weather-icons-lite.

when browsing filesystem in node-modules I can see weather-icons-lite is a symlink folder.  
I then tried to delete this symlink but now I cant install the weather-icons-lite, and when ever I update another npm package from the node palette it keeps creating this symlink.

Do any of you have an idea on how I unmess this trouble I put myself in?

I have tried npm rebuild in the .node-red folder.

 ![Udklip4](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/7/f721d0b887ef71f26e0c2ea0dd2916366cb1f654.png)

---

<div class="post-metadata">

### Author: ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)
#### Post date: [20 December 2020 14:11 UTC](https://discourse.nodered.org/t/help-i-messed-up-weather-icons-lite/37796/2 "2020-12-20T14:11:55Z")

</div>

> [@thomasvjohansen](#):
>
> when I updated with "npm i weather-icons-lite" it updated and I could see the changes in css.  
> but node-red didnt reconize them.

You shouldn't really be installing or updating `weather-icons-lite` in this way, as it is a dependency within `node-red-dashboard`.

When the node-RED team update `node-red-dashboard`, the **build process** copies files from [npm weather-icons-lite](https://www.npmjs.com/package/weather-icons-lite), and processes them as follows when installed on a pi;  
The 2 font files are installed in `/home/pi/.node-red/node_modules/node-red-dashboard/dist/fonts`, and the corresponding css is merged into the dashboard css file - `app.min.css` which is located `/home/pi/.node-red/node_modules/node-red-dashboard/dist/css`.

I would npm uninstall `weather-icons-lite` and await for the next version of the dashboard to be released, which will contain the css changes which you made a PR for.

v2.25.0 of the dashboard currently uses v1.5.0 of the w/icons. Your recent changes are in v1.6.0.

---

<div class="post-metadata">

### Author: ![thomasvjohansen](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thomasvjohansen/32/32779_2.png) [@thomasvjohansen](https://discourse.nodered.org/u/thomasvjohansen)
#### Post date: [20 December 2020 14:20 UTC](https://discourse.nodered.org/t/help-i-messed-up-weather-icons-lite/37796/3 "2020-12-20T14:20:24Z")

</div>

I kinda found out, too late about the build in css to node-red.

when trying to uninstall it says:

```auto
pi@raspberrypi:~/.node-red $ npm uninstall weather-icons-lite
npm ERR! code ELOOP
npm ERR! syscall open
npm ERR! path /home/pi/.node-red/node_modules/weather-icons-lite/npm-shrinkwrap.json
npm ERR! errno -40
npm ERR! ELOOP: too many symbolic links encountered, open '/home/pi/.node-red/node_modules/weather-icons-lite/npm-shrinkwrap.json'

npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2020-12-20T14_18_23_858Z-debug.log

```

---

<div class="post-metadata">

### Author: ![thomasvjohansen](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thomasvjohansen/32/32779_2.png) [@thomasvjohansen](https://discourse.nodered.org/u/thomasvjohansen)
#### Post date: [20 December 2020 14:23 UTC](https://discourse.nodered.org/t/help-i-messed-up-weather-icons-lite/37796/4 "2020-12-20T14:23:56Z")

</div>

and the end of debug log

```auto
17 silly saveTree └── weather-icons-lite@file:node_modules/weather-icons-lite
18 verbose stack Error: ELOOP: too many symbolic links encountered, open '/home/pi/.node-red/node_modules/weath$
19 verbose cwd /home/pi/.node-red
20 verbose Linux 5.4.72-v7+
21 verbose argv "/usr/bin/node" "/usr/bin/npm" "uninstall" "weather-icons-lite"
22 verbose node v12.19.1
23 verbose npm v6.14.10
24 error code ELOOP
25 error syscall open
26 error path /home/pi/.node-red/node_modules/weather-icons-lite/npm-shrinkwrap.json
27 error errno -40
28 error ELOOP: too many symbolic links encountered, open '/home/pi/.node-red/node_modules/weather-icons-lite/n$
29 verbose exit [-40, true]

```

---

<div class="post-metadata">

### Author: ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)
#### Post date: [20 December 2020 14:33 UTC](https://discourse.nodered.org/t/help-i-messed-up-weather-icons-lite/37796/5 "2020-12-20T14:33:59Z")

</div>

I'm stepping outside of my comfort zone here as I've never encountered ELOOP before...

I would stop node-RED, manually delete the `weather-icons-lite` directory, and then carefully edit the `package.json` file which is in your `.node-red` directory, deleting the line containing `weather-icons-lite` (create a backup first).

Then restart node-RED.

@TotallyInformation - do you agree Julian?

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [20 December 2020 14:41 UTC](https://discourse.nodered.org/t/help-i-messed-up-weather-icons-lite/37796/6 "2020-12-20T14:41:11Z")

</div>

I think that personally, I would delete the whole `node_modules` folder from your userDir. You probably need to to an `npm cache clean --force` as well. (I think that's the command, I don't often use it so don't always remember it exactly). It is possible that the cache is causing the issue. Despite the horrid warnings you get when trying to run it, it doesn't do any harm.

Once you've done that, again from the userDir folder, run `npm install` and everything should come back nicely.

---

<div class="post-metadata">

### Author: ![thomasvjohansen](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thomasvjohansen/32/32779_2.png) [@thomasvjohansen](https://discourse.nodered.org/u/thomasvjohansen)
#### Post date: [20 December 2020 14:46 UTC](https://discourse.nodered.org/t/help-i-messed-up-weather-icons-lite/37796/7 "2020-12-20T14:46:32Z")

</div>

from userdir ~/ or from .node-red/ ?

It wont do any harm to my flows etc.?

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [20 December 2020 14:49 UTC](https://discourse.nodered.org/t/help-i-messed-up-weather-icons-lite/37796/8 "2020-12-20T14:49:14Z")

</div>

By efault, the userDir is at `~/.node-red`, it contains your flows and settings and more. That is where you install your nodes.

Just make sure you only delete the `~/.node-red/node_modules` folder and all will be well.

Of course, always sensible to take a backup copy of key files/folders before messing with things 😉

---

<div class="post-metadata">

### Author: ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)
#### Post date: [20 December 2020 14:50 UTC](https://discourse.nodered.org/t/help-i-messed-up-weather-icons-lite/37796/9 "2020-12-20T14:50:14Z")

</div>

Unless the package.json file is edited and `weather-icons-lite` removed, it will be automatically installed again when as Julian says "run npm install".  
But you should then be able `npm uninstall` it as normal.

Thanks Julian

---

<div class="post-metadata">

### Author: ![thomasvjohansen](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thomasvjohansen/32/32779_2.png) [@thomasvjohansen](https://discourse.nodered.org/u/thomasvjohansen)
#### Post date: [20 December 2020 15:06 UTC](https://discourse.nodered.org/t/help-i-messed-up-weather-icons-lite/37796/10 "2020-12-20T15:06:43Z")

</div>

weird stuff is going on...  
in ~/.node-red/

renamed node\_modules folder to node\_modulesXXX  
ran `npm cache clean --force`  
ran `npm install`

Then did a list: `ls node_modules/` and it shows that weather-icons-lite is still a symlink folder.

---

<div class="post-metadata">

### Author: ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)
#### Post date: [20 December 2020 15:08 UTC](https://discourse.nodered.org/t/help-i-messed-up-weather-icons-lite/37796/11 "2020-12-20T15:08:31Z")

</div>

Have you had a look in your package.json file?

---

<div class="post-metadata">

### Author: ![thomasvjohansen](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thomasvjohansen/32/32779_2.png) [@thomasvjohansen](https://discourse.nodered.org/u/thomasvjohansen)
#### Post date: [20 December 2020 15:09 UTC](https://discourse.nodered.org/t/help-i-messed-up-weather-icons-lite/37796/12 "2020-12-20T15:09:16Z")

</div>

oh I will.....

though have to go now, thx for your help, will work on this later...

---

<div class="post-metadata">

### Author: ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)
#### Post date: [20 December 2020 15:14 UTC](https://discourse.nodered.org/t/help-i-messed-up-weather-icons-lite/37796/13 "2020-12-20T15:14:56Z")

</div>

You will probably have a line similar to;

`"weather-icons-lite": "file:../some-directory/weather-icons-lite",`

If so, delete that line, and repeat what Julian suggested.

---

<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: [20 December 2020 15:32 UTC](https://discourse.nodered.org/t/help-i-messed-up-weather-icons-lite/37796/14 "2020-12-20T15:32:02Z")

</div>

And you may have a package-lock file that you need to edit also.

---

<div class="post-metadata">

### Author: ![thomasvjohansen](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thomasvjohansen/32/32779_2.png) [@thomasvjohansen](https://discourse.nodered.org/u/thomasvjohansen)
#### Post date: [20 December 2020 16:40 UTC](https://discourse.nodered.org/t/help-i-messed-up-weather-icons-lite/37796/15 "2020-12-20T16:40:25Z")

</div>

editing the package.json file removing weather-icons-lite line and then deleted node\_modules folder, clean cache and npm install.

Think it worked, now no weather-icons-lite symlink in the node\_modules folder.

Thx all of you for rescuing me, now I just sit tight and waiting for the next update of 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: [20 December 2020 16:44 UTC](https://discourse.nodered.org/t/help-i-messed-up-weather-icons-lite/37796/16 "2020-12-20T16:44:18Z")

</div>

you don't need the whole of Node-RED - just the next version of node-red-dashboard.  
And it will probably be this week.

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [21 December 2020 02:15 UTC](https://discourse.nodered.org/t/help-i-messed-up-weather-icons-lite/37796/17 "2020-12-21T02:15:23Z")

</div>

Drat I always forget to remind people to delete that as well.

---

<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: [21 December 2020 10:02 UTC](https://discourse.nodered.org/t/help-i-messed-up-weather-icons-lite/37796/18 "2020-12-21T10:02:01Z")

</div>

> [@dceejay](#):
>
> may have a package-lock file that you need to edit also

In fact, at least with npm v6.14.8, it is not necessary to edit package-lock.json after editing package.json. package.json determines _what_ should be installed and may specify a range of versions that are acceptable, package-lock.json specifies exactly which version it should be (or is). If an entry is removed from package.json and `npm install` is run then the package spec is removed from package-lock.json.

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [21 December 2020 12:21 UTC](https://discourse.nodered.org/t/help-i-messed-up-weather-icons-lite/37796/19 "2020-12-21T12:21:00Z")

</div>

Personally, I've had lots of problems with package.lock in the past. If I have an npm problem, deleting it is pretty much the first thing I do. It gets re-created anyway next time you install something. It is only really useful if distributing your code anyway.

---

<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: [21 December 2020 12:24 UTC](https://discourse.nodered.org/t/help-i-messed-up-weather-icons-lite/37796/20 "2020-12-21T12:24:34Z")

</div>

I was just pointing out that it should not be necessary in the situation we have here.  
I haven't had any problems with the lock file, but quite possibly I just haven't hit the appropriate edge cases.

[Next page](https://discourse.nodered.org/t/help-i-messed-up-weather-icons-lite/37796.md?page=2)
