Nodes Uninstallation Issue

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

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 :

    • ( ) Windows: v 10
  • Node:
    node --version = v10.15.0

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

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.

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