# Error rc217 or 247. When installing, deleting, updating nodes

**URL:** https://discourse.nodered.org/t/error-rc217-or-247-when-installing-deleting-updating-nodes/95887
**Category:** General
**Created:** [9 March 2025 14:22 UTC](https://discourse.nodered.org/t/error-rc217-or-247-when-installing-deleting-updating-nodes/95887 "2025-03-09T14:22:33Z")
**Posts on this page:** 9
**Page:** 2

<div class="post-metadata">

### Author: ![Alex\_engineer](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@Alex\_engineer](https://discourse.nodered.org/u/Alex_engineer)
#### Post date: [12 March 2025 11:31 UTC](https://discourse.nodered.org/t/error-rc217-or-247-when-installing-deleting-updating-nodes/95887/21 "2025-03-12T11:31:05Z")

</div>

Erorr when install nev node:

```auto
2025-03-12T11:28:40.150Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --omit=dev --engine-strict node-red-contrib-miio-humidifier@0.9.5
2025-03-12T11:28:51.654Z [err] npm error code ENOTEMPTY
2025-03-12T11:28:51.654Z [err] npm error syscall rename
2025-03-12T11:28:51.654Z [err] npm error path /home/alex/.node-red/node_modules/cronstrue
2025-03-12T11:28:51.654Z [err] npm error dest /home/alex/.node-red/node_modules/.cronstrue-xHrvmzs1
2025-03-12T11:28:51.654Z [err] npm error errno -39
2025-03-12T11:28:51.655Z [err] npm error ENOTEMPTY: directory not empty, rename '/home/alex/.node-red/node_modules/cronstrue' -> '/home/alex/.node-red/node_modules/.cronstrue-xHrvmzs1'
2025-03-12T11:28:51.659Z [err] npm error A complete log of this run can be found in: /home/alex/.npm/_logs/2025-03-12T11_28_40_413Z-debug-0.log
2025-03-12T11:28:51.692Z rc=217

```

---

<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: [12 March 2025 11:39 UTC](https://discourse.nodered.org/t/error-rc217-or-247-when-installing-deleting-updating-nodes/95887/22 "2025-03-12T11:39:53Z")

</div>

> [@Alex\_engineer](#):
>
> `2025-03-12T11:28:51.655Z [err] npm error ENOTEMPTY: directory not empty, rename '/home/alex/.node-red/node_modules/cronstrue' -> '/home/alex/.node-red/node_modules/.cronstrue-xHrvmzs1'`

That is a different error. It is probably a hangover from the previous issue. Delete the folder /home/alex/.node-red/node\_modules/.cronstrue-xHrvmzs1 and any other similarly named folders in node\_modules, with the random chars on the end.

**[edit]** There is something else still wrong though, what do the commands  
`which node`  
and  
`which npm`  
show?

---

<div class="post-metadata">

### Author: ![Alex\_engineer](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@Alex\_engineer](https://discourse.nodered.org/u/Alex_engineer)
#### Post date: [12 March 2025 11:50 UTC](https://discourse.nodered.org/t/error-rc217-or-247-when-installing-deleting-updating-nodes/95887/23 "2025-03-12T11:50:21Z")

</div>

> [@Colin](#):
>
> `which node`  
> `which npm`

```auto
/usr/local/bin/node
/usr/local/bin/npm

```

---

<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: [12 March 2025 11:57 UTC](https://discourse.nodered.org/t/error-rc217-or-247-when-installing-deleting-updating-nodes/95887/24 "2025-03-12T11:57:50Z")

</div>

Check the timestamps on those. If they were created by the install script then post the node red install log (/var/log/nodered-install.log or something similar). If they are older then delete them, make sure that node -v and npm -v show they are not installed, and run the script again.

What hardware are you running on? Is it an old Arm device?

---

<div class="post-metadata">

### Author: ![Alex\_engineer](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@Alex\_engineer](https://discourse.nodered.org/u/Alex_engineer)
#### Post date: [12 March 2025 12:03 UTC](https://discourse.nodered.org/t/error-rc217-or-247-when-installing-deleting-updating-nodes/95887/25 "2025-03-12T12:03:54Z")

</div>

> [@Colin](#):
>
> /var/log/nodered-install.log

```auto
Started : Срд 12 сак 2025 14:01:28 +03
Running for user alex at /home/alex
Found global nodes: :

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Чтение списков пакетов…
Построение дерева зависимостей…
Чтение информации о состоянии…
E: Невозможно найти пакет nodered
Using n
  installing : node-v20.18.3
       mkdir : /usr/local/n/versions/node/20.18.3
       fetch : https://nodejs.org/dist/v20.18.3/node-v20.18.3-linux-x64.tar.xz
     copying : node/20.18.3
   installed : v20.18.3 (with npm 10.8.2)

Versions: node:v20.18.3 npm:10.8.2
npm warn using --force Recommended protections disabled.
Now install Node-RED 

added 311 packages in 3m
4.0.9
Now create basic package.json for the user and move any global nodes
Running npm rebuild
rebuilt dependencies successfully
Now add the shortcut and start/stop/log scripts to the menu
Now add systemd script and configure it for alex:alex @ /home/alex
ln: не удалось создать символьную ссылку '/usr/bin/python': Файл существует
Now add launcher to top bar, add cpu temp example, make sure ping works
Allow binding to low ports : n
Memory : 
Started : Срд 12 сак 2025 14:01:28 +03 
Finished: Срд 12 сак 2025 14:04:29 +03

```

---

<div class="post-metadata">

### Author: ![Alex\_engineer](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@Alex\_engineer](https://discourse.nodered.org/u/Alex_engineer)
#### Post date: [12 March 2025 12:05 UTC](https://discourse.nodered.org/t/error-rc217-or-247-when-installing-deleting-updating-nodes/95887/26 "2025-03-12T12:05:19Z")

</div>

> [@Colin](#):
>
> What hardware are you running on?

```auto
HP t630

```

---

<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: [12 March 2025 13:27 UTC](https://discourse.nodered.org/t/error-rc217-or-247-when-installing-deleting-updating-nodes/95887/27 "2025-03-12T13:27:48Z")

</div>

> [@Alex\_engineer](#):
>
> `Using n`  
> installing : node-v20.18.3

So not only had you used npm to install nodejs, but also `n`. Seeing that, the script has used `n` to install nodejs, so that may be ok.

Did deleting the strange named folder fix the install problem?

---

<div class="post-metadata">

### Author: ![Alex\_engineer](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@Alex\_engineer](https://discourse.nodered.org/u/Alex_engineer)
#### Post date: [12 March 2025 18:41 UTC](https://discourse.nodered.org/t/error-rc217-or-247-when-installing-deleting-updating-nodes/95887/28 "2025-03-12T18:41:49Z")

</div>

> [@Colin](#):
>
> Did deleting the strange named folder fix the install problem?

The files were deleted. After the first reboot, everything remained as before. Then there was a forced second reboot and everything worked: installation, removal, updating of nodes. Thanks for the help 🤝

---

<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: [10 June 2025 18:42 UTC](https://discourse.nodered.org/t/error-rc217-or-247-when-installing-deleting-updating-nodes/95887/29 "2025-06-10T18:42:24Z")

</div>

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

[Previous page](https://discourse.nodered.org/t/error-rc217-or-247-when-installing-deleting-updating-nodes/95887.md?page=1)
