# Nodes Uninstallation Issue

**URL:** <https://discourse.nodered.org/t/nodes-uninstallation-issue/33830>\
**Category:** General\
**Created:** [6 October 2020 12:37 UTC](https://discourse.nodered.org/t/nodes-uninstallation-issue/33830 "2020-10-06T12:37:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Devbrat](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@Devbrat](https://discourse.nodered.org/u/Devbrat)\
**Post date:** [6 October 2020 12:37 UTC](https://discourse.nodered.org/t/nodes-uninstallation-issue/33830/1 "2020-10-06T12:37:58Z")

</div>

Hi All,

**Problem**

- I am trying uninstall node-red-contrib-modbus node and similar nodes which is using serialport dependency from Node-RED palette manager

**Current behavior**  
Its throwing error during uninstallation

 ![serial](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/3/0382686bf46277d4531fa815f14a396ea5235c86.jpeg)

**Expected behavior**  
It should get uninstall properly without error

**Minimal reproduction of the problem with instructions**

1. Install node-red-contrib-modbus node from palette manager
2. Drag and Connect to any server from TCP/Serial and Deploy the node-red
3. Delete the node and configuration node and Deploy the node-red
4. Try to uninstall the node from palette manager

### Your Environment

- Device :

- **Node:**  
`node --version` = v10.15.0

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [6 October 2020 13:19 UTC](https://discourse.nodered.org/t/nodes-uninstallation-issue/33830/2 "2020-10-06T13:19:44Z")

</div>

looks like npm does not have permissions to modify the file system (or has create but not modify permissions) from the account running it.

Did you install node/node-red as and administrator and now running is as a non admin user?

I would check that the account running node-red has the necessary permissions for that folder `c:\users\xxxxx\.node-red\` and its sub directories .

If you need to get moving, you could try stopping node-red, opening an elevated command prompt, CD to that `c:\users\xxxxx\.node-red\` and perform the install manually `npm uninstall node-red-contrib-whatever`

---

<div class="post-metadata">

**Author:** ![Devbrat](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@Devbrat](https://discourse.nodered.org/u/Devbrat)\
**Post date:** [6 October 2020 15:46 UTC](https://discourse.nodered.org/t/nodes-uninstallation-issue/33830/3 "2020-10-06T15:46:33Z")

</div>

As far I know, there is no permissions issue.  
This happening because even after deleting the nodes some file Ex.: serialpot.node or bindings.node is being used by node-red process.

Its will work in below scenarios:  
First:

1. Install node-red-contrib-modbus node from palette manager
2. Simply Try to uninstall the node from palette manager without using it

Second:

1. Install node-red-contrib-modbus node from palette manager
2. Drag and Connect to any server from TCP/Serial and Deploy the node-red
3. Delete the node and configuration node and Deploy the node-red
4. Restart Node-RED
5. Try to uninstall the node from palette manager

But it is not working in previous secnario.

---

<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:** [5 December 2020 15:46 UTC](https://discourse.nodered.org/t/nodes-uninstallation-issue/33830/4 "2020-12-05T15:46:40Z")

</div>

Closed on 5 December 2020 15:46 UTC

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