# Cannot upgrade Node-Red\_email node to latest version

**URL:** <https://discourse.nodered.org/t/cannot-upgrade-node-red-email-node-to-latest-version/72292>\
**Category:** General\
**Created:** [16 December 2022 03:28 UTC](https://discourse.nodered.org/t/cannot-upgrade-node-red-email-node-to-latest-version/72292 "2022-12-16T03:28:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![labob246](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/labob246/32/72681_2.png) [@labob246](https://discourse.nodered.org/u/labob246)\
**Post date:** [16 December 2022 03:28 UTC](https://discourse.nodered.org/t/cannot-upgrade-node-red-email-node-to-latest-version/72292/1 "2022-12-16T03:28:28Z")

</div>

Currently on version 1.15.1 of node-red-node-email. Trying to upgrade using the manage pallet to 1.18.2 but it fails. Here is the error log:  
15 Dec 20:49:57 - [info] Upgrading module: node-red-node-email to version: 1.18.2  
15 Dec 20:50:03 - [warn] Installation of module node-red-node-email failed:  
15 Dec 20:50:03 - [warn] ------------------------------------------  
15 Dec 20:50:03 - [warn] npm WARN config production Use `--omit=dev` instead.  
npm ERR! code ENOTEMPTY  
npm ERR! syscall rename  
npm ERR! path /config/node-red/node\_modules/node-red-node-email  
npm ERR! dest /config/node-red/node\_modules/.node-red-node-email-9kimBKpy  
npm ERR! errno -39  
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'  
npm ERR! A complete log of this run can be found in:  
npm ERR! /root/.npm/\_logs/2022-12-16T02\_49\_59\_422Z-debug-0.log  
15 Dec 20:50:03 - [warn] ------------------------------------------  
Error: Install failed  
at /opt/node\_modules/@node-red/registry/lib/installer.js:285:25  
at process.processTicksAndRejections (node:internal/process/task\_queues:95:5)  
15 Dec 20:50:03 - [error] Error: Install failed

Using Node-Red as an addon (Current version: 14.0.0) in Home Assistant. Any help is appreciated.

---

<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:** [16 December 2022 07:41 UTC](https://discourse.nodered.org/t/cannot-upgrade-node-red-email-node-to-latest-version/72292/2 "2022-12-16T07:41:12Z")

</div>

> [@labob246](#):
>
> 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'

Delete that folder and they again. The one with the \_9kim... On the end.

---

<div class="post-metadata">

**Author:** ![labob246](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/labob246/32/72681_2.png) [@labob246](https://discourse.nodered.org/u/labob246)\
**Post date:** [18 December 2022 07:16 UTC](https://discourse.nodered.org/t/cannot-upgrade-node-red-email-node-to-latest-version/72292/3 "2022-12-18T07:16:23Z")

</div>

Thank you. That took care of it.

---

<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:** [1 January 2023 07:16 UTC](https://discourse.nodered.org/t/cannot-upgrade-node-red-email-node-to-latest-version/72292/4 "2023-01-01T07:16:41Z")

</div>

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