Node-RED nodes cannot update


I am trying to update node red nodes, however I get an error message every time I try.

NodeRed version 13.3.1.


2022-08-15T20:05:56.012Z Install : node-red-node-email 1.17.0

2022-08-15T20:05:53.438Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict [email protected]
2022-08-15T20:05:54.022Z [err] npm
2022-08-15T20:05:54.023Z [err] WARN
2022-08-15T20:05:54.023Z [err] config production Use `--omit=dev` instead.
2022-08-15T20:05:55.800Z [err] npm
2022-08-15T20:05:55.800Z [err] ERR! code ENOTEMPTY
2022-08-15T20:05:55.800Z [err] npm
2022-08-15T20:05:55.801Z [err] ERR! syscall rename
2022-08-15T20:05:55.801Z [err] npm ERR!
2022-08-15T20:05:55.801Z [err]
2022-08-15T20:05:55.801Z [err] path /config/node-red/node_modules/node-red-node-email
2022-08-15T20:05:55.801Z [err] npm ERR! dest /config/node-red/node_modules/.node-red-node-email-9kimBKpy
2022-08-15T20:05:55.801Z [err] npm ERR! errno -39
2022-08-15T20:05:55.803Z [err] npm ERR! ENOTEMPTY: directory not empty, rename '/config/node-red/node_modules/node-red-node-email' -> '/config/node-red/node_modules/.node-red-node-email-9kimBKpy'
2022-08-15T20:05:55.805Z [err]
2022-08-15T20:05:55.805Z [err] npm ERR! A complete log of this run can be found in:
2022-08-15T20:05:55.805Z [err] npm ERR!
2022-08-15T20:05:55.806Z [err] /root/.npm/_logs/2022-08-15T20_05_53_966Z-debug-0.log
2022-08-15T20:05:55.813Z rc=217

2022-08-15T20:07:23.299Z Install : node-red-node-email 1.17.0

2022-08-15T20:07:20.902Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict [email protected]
2022-08-15T20:07:21.522Z [err] npm
2022-08-15T20:07:21.523Z [err]
2022-08-15T20:07:21.523Z [err] WARN config production Use `--omit=dev` instead.
2022-08-15T20:07:22.193Z [err] npm
2022-08-15T20:07:22.194Z [err] ERR!
2022-08-15T20:07:22.194Z [err] code ENOTEMPTY
2022-08-15T20:07:22.194Z [err] npm
2022-08-15T20:07:22.195Z [err] ERR!
2022-08-15T20:07:22.195Z [err] syscall rename
2022-08-15T20:07:22.195Z [err] npm ERR!
2022-08-15T20:07:22.196Z [err] path
2022-08-15T20:07:22.196Z [err] /config/node-red/node_modules/node-red-node-email
2022-08-15T20:07:22.196Z [err] npm ERR!
2022-08-15T20:07:22.196Z [err] dest /config/node-red/node_modules/.node-red-node-email-9kimBKpy
2022-08-15T20:07:22.197Z [err] npm
2022-08-15T20:07:22.197Z [err] ERR! errno -39
2022-08-15T20:07:22.200Z [err] npm ERR! ENOTEMPTY: directory not empty, rename '/config/node-red/node_modules/node-red-node-email' -> '/config/node-red/node_modules/.node-red-node-email-9kimBKpy'
2022-08-15T20:07:22.203Z [err]
2022-08-15T20:07:22.204Z [err] npm ERR! A complete log of this run can be found in:
2022-08-15T20:07:22.204Z [err] npm ERR! /root/.npm/_logs/2022-08-15T20_07_21_473Z-debug-0.log
2022-08-15T20:07:22.211Z rc=217

Any ideas?


I have exactly the same issue, did you get it sorted?

2022-08-17T11:41:36.877Z Install : node-red-node-email 1.17.0

2022-08-17T11:41:36.960Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict [email protected]
2022-08-17T11:41:37.294Z [err] npm
2022-08-17T11:41:37.294Z [err]  WARN config production Use `--omit=dev` instead.
2022-08-17T11:41:38.500Z [err] npm 
2022-08-17T11:41:38.500Z [err] ERR! code ENOTEMPTY
2022-08-17T11:41:38.500Z [err] npm ERR!
2022-08-17T11:41:38.500Z [err]  syscall
2022-08-17T11:41:38.500Z [err]  rename
2022-08-17T11:41:38.500Z [err] npm ERR!
2022-08-17T11:41:38.500Z [err]  path
2022-08-17T11:41:38.500Z [err]  /config/node-red/node_modules/node-red-node-email
2022-08-17T11:41:38.500Z [err] npm ERR! dest /config/node-red/node_modules/.node-red-node-email-9kimBKpy
2022-08-17T11:41:38.500Z [err] npm ERR! errno -39
2022-08-17T11:41:38.502Z [err] npm ERR! ENOTEMPTY: directory not empty, rename '/config/node-red/node_modules/node-red-node-email' -> '/config/node-red/node_modules/.node-red-node-email-9kimBKpy'
2022-08-17T11:41:38.503Z [err] 
2022-08-17T11:41:38.503Z [err] npm ERR! A complete log of this run can be found in:
2022-08-17T11:41:38.503Z [err] npm ERR!
2022-08-17T11:41:38.503Z [err]      /root/.npm/_logs/2022-08-17T11_41_37_262Z-debug-0.log
2022-08-17T11:41:38.509Z rc=217

Yes I resolved it.

Node red needs to be running. You go to the directory for node red and delete the following folder:

Remove the directory: /config/node-red/node_modules/.node-red-node-email-9kimBKpy**

So you need to delete .node-red-node-email-9kimBKpy

Take a backup first. This will then allow you to update the email node.


I have the same. But when I delete a folder a new one comes up with a warning.
Do I need to delete them all??
What will happen with all the installed nodes?

I just deleted the nodered email folders, and the contents within them.

1 Like