Uninstall a node - installed and conflicting

Hello @knolleary!

I do want to uninstall node-red-contrib-generic-ble-arcom.
I do have the node "node-red-contrib-generic-ble-arcom" listed under palette but greyed out and ready to be activated.
I probably in´stalled or deinstalled it unpropperly out of the palette or with (root) npm uninetionally so I might have srewed something severely up here.

This node now shows still conflicting with node-red-contrib-generic-ble, so Ithat I am unable to install this node!

Therefor i do have to completely uninstall this node: node-red-contrib-generic-ble-arcom.

I cannot:

  • activate it
  • I cannot uninstall it from the palette
    in .node-red directory:
  • it is not listet in the package.json ( there is even a Package-lock.json: but, however, it is not mentioned in this file!?)
  • it is not in node_modules directory
  • I cannot:
    npm uninstall node-red-contrib-generic-ble-arcom
    npm uninstall -g node-red-contrib-generic-ble-arcom

it might have been installed under root with root:npm which was accidentally parallelly installed to my user: npm.
root:npm is removed now.

please help - I cannot get rid of this package anymore.

Welcome to the forum @habakuk25

What OS/hardware are you using please?

What do these commands show when run from your .node-red folder (the folder is important).
npm list node-red-contrib-generic-ble-arcom
npm list -g node-red-contrib-generic-ble-arcom

Also In a terminal stop node-red and start it again and post the full output here. When posting the log (or flows and code) it is important to paste it here correctly, please see this post for more details - How to share code or flow json

Hello!

Unfortunately I could not post the reply.

"I am only supposed to post 2 links max. on this post"?? There are no links, however:

@What OS/hardware are you using please?

Ubuntu 18.04 @ 3.16.85+ kernel
Odroid C2 (arm64)

npm list node-red-contrib-generic-ble-arcom shows:

sry I could not post my reply - there was complaint that I had more than 2 links included??

I sent it via email.

please reply thx!

To whom? What email address?

You should be able to paste it in without problems.

to this one: just replied

nodered+d985a1b8abfe37bf498acd1b720484fd@discoursemail.com

went through though....

Hello!

Unfortunately I could not post the reply

now it worked. this is really weird error:
"you are only allowed to post 2 links (???) in this post??

"I am only supposed to post 2 links max. on this post"?? There are no links, however:

@What OS/hardware are you using please?

Ubuntu 18.04 @ 3.16.85+ kernel

Odroid C2 (arm64)

npm list node-red-contrib-generic-ble-arcom shows:


node-red-project@0.0.1 /home/odroid/.node-red

'-- (empty)


npm list -g node-red-contrib-generic-ble-arcom shows:


/home/odroid/.nvm/versions/node(v12.11.1/lib

'-- (empty)


restart node red:

node red stop:

~/.node-red$ node-red stop

22 Apr 16:58:52 - [info]

Welcome to Node-RED

===================

22 Apr 16:58:52 - [info] Node-RED version: v1.0.1

22 Apr 16:58:52 - [info] Node.js version: v12.11.1

22 Apr 16:58:52 - [info] Linux 3.16.85+ arm64 LE

22 Apr 16:58:53 - [info] Loading palette nodes

22 Apr 16:58:56 - [info] Dashboard version 2.28.2 started at /ui

22 Apr 16:58:57 - [info] Settings file : /home/odroid/.node-red/settings.js

22 Apr 16:58:57 - [info] Context store : 'default' [module=memory]

22 Apr 16:58:57 - [info] User directory : /home/odroid/.node-red

22 Apr 16:58:57 - [warn] Projects disabled : editorTheme.projects.enabled=false

22 Apr 16:58:57 - [info] Flows file : /home/odroid/.node-red/stop

22 Apr 16:58:57 - [info] Creating new flow file

22 Apr 16:58:57 - [warn]


Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials

file will not be recoverable, you will have to delete it and re-enter

your credentials.

You should set your own key using the 'credentialSecret' option in

your settings file. Node-RED will then re-encrypt your credentials

file using your chosen key the next time you deploy a change.


22 Apr 16:58:57 - [info] Starting flows

22 Apr 16:58:57 - [info] Started flows

22 Apr 16:58:57 - [error] Unable to listen on http://127.0.0.1:1880/

22 Apr 16:58:57 - [error] Error: port in use



node-red start:

odroid@odroid:~/.node-red$ node-red start

22 Apr 17:01:01 - [info]

Welcome to Node-RED

===================

22 Apr 17:01:01 - [info] Node-RED version: v1.0.1

22 Apr 17:01:01 - [info] Node.js version: v12.11.1

22 Apr 17:01:01 - [info] Linux 3.16.85+ arm64 LE

22 Apr 17:01:02 - [info] Loading palette nodes

22 Apr 17:01:06 - [info] Dashboard version 2.28.2 started at /ui

22 Apr 17:01:06 - [info] Settings file : /home/odroid/.node-red/settings.js

22 Apr 17:01:06 - [info] Context store : 'default' [module=memory]

22 Apr 17:01:06 - [info] User directory : /home/odroid/.node-red

22 Apr 17:01:06 - [warn] Projects disabled : editorTheme.projects.enabled=false

22 Apr 17:01:06 - [info] Flows file : /home/odroid/.node-red/start

22 Apr 17:01:06 - [info] Creating new flow file

22 Apr 17:01:06 - [warn]


Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials

file will not be recoverable, you will have to delete it and re-enter

your credentials.

You should set your own key using the 'credentialSecret' option in

your settings file. Node-RED will then re-encrypt your credentials

file using your chosen key the next time you deploy a change.


22 Apr 17:01:06 - [info] Starting flows

22 Apr 17:01:06 - [info] Started flows

22 Apr 17:01:06 - [error] Unable to listen on http://127.0.0.1:1880/

22 Apr 17:01:06 - [error] Error: port in use

your help is appreciated.

thanks in advance.

Those are not the commands to stop and start node-red. The reason you get the port in use error is because you had not stopped node-red.

On a Pi it would be
node-red-stop
node-red-start
But I don't know if those are the commands for yours system. It depends how you installed node-red. I can see that you have an obsolete version of node red and also of nodejs. You need to update them. nodejs 12.x is ok, but the latest of that version is 12.22.1

activate is not working.

Hello!

this is how I installed nodered:


https://linuxconfig.org/how-to-install-node-js-on-ubuntu-18-04-bionic-beaver-linux

sudo apt install nodejs
sudo apt install libssl1.0-dev
sudo apt install nodejs-dev
sudo apt install node-gyp
sudo apt install npm


my start command is: node-red

so what is my stop command?
how to update?

hello Colin!

I updated with:
sudo npm install -g --unsafe-perm node-red@next

all the way up to : 1.3.0-beta.1: Beta Release

and the node is gone!!

Please take a moment to think things through and then re-read the node-red documentation.

A standard install of node-red is npm -g install node-red. The @next is only used temporarily when installing a beta version.

Also, you should limit yourself to installing nodes via the palette manager rather than trying to install manually.

You have chosen a complex area to try to get working. Bluetooth is rarely straight-forward and comes with lots of complexity and problems. The node you have chosen is particularly complex by the looks of it. At the least, you will need to have installed and got working the command line gattool and sorted out any bluetooth permissions issues that I think we may have covered in another thread.