Skip to content

Commit 0e537cc

Browse files
committed
20220708 Node-RED - master branch - PR 1 of 2 - part 3
The revised `nodered_list_installed_nodes.sh` revealed that the older "move and delete" method for resolving conflicts actually leaves behind a mess. Replaced with a `docker exec` call. Signed-off-by: Phill Kelley <[email protected]>
1 parent b8c932d commit 0e537cc

File tree

1 file changed

+6
-32
lines changed

1 file changed

+6
-32
lines changed

docs/Containers/Node-RED.md

Lines changed: 6 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,39 +1135,13 @@ Components in persistent store at
11351135
node-red-contrib-pushsafer
11361136
```
11371137

1138-
Notice how `node-red-node-email` appears in both lists. To fix this problem:
1138+
Notice how the `node-red-node-email` instance installed in the Dockerfile is being blocked. To fix this problem:
11391139

1140-
1. Move into the correct external directory:
1141-
1142-
``` console
1143-
$ cd ~/IOTstack/volumes/nodered/data/node_modules
1144-
```
1145-
1146-
2. Create a sub-directory to be the equivalent of a local trash can:
1147-
1148-
``` console
1149-
$ sudo mkdir duplicates
1150-
```
1151-
1152-
3. Move each duplicate node into the `duplicates` directory. For example, to move `node-red-node-email` you would:
1153-
1154-
``` console
1155-
$ sudo mv node-red-node-email duplicates
1156-
```
1157-
1158-
4. Tell Node-RED to restart. This causes it to forget about the nodes which have just been moved out of the way:
1159-
1160-
``` console
1161-
$ docker-compose -f ~/IOTstack/docker-compose.yml restart nodered
1162-
```
1163-
1164-
5. Finish off by erasing the `duplicates` folder:
1165-
1166-
``` console
1167-
$ sudo rm -rf duplicates
1168-
```
1169-
1170-
Always be extremely careful with any `rm -rf`, particularly when it is coupled with a `sudo`. Double-check your work **before** you press <kbd>return</kbd>.
1140+
``` console
1141+
$ cd ~/IOTstack
1142+
$ docker exec -w /data nodered npm uninstall node-red-node-email
1143+
$ docker-compose restart nodered
1144+
```
11711145

11721146

11731147
## Package management { #packageManagement }

0 commit comments

Comments
 (0)