Uninstall Node-Red


Hi, I uninstall all the node red modules, I already uninstall node js and deleting node modules in my pc. when I reinstall it back, i did not get a new node red, the old one still in used and i could not remove the node modules by the manager pallet, what should i do to encounter this problem?



When Node-RED starts it logs the userDirectory it is using to store your flows and extra nodes. When you uninstall Node-RED it doesn’t delete the userDirectory, so that will still contain your flows etc.

If you really want to wipe everything, delete the user directory and restart.



Do you mean the version of node red is not the latest? If so then what operating system you using and what hardware? If this is Raspbian or Ubuntu or other Debian based system then use the install script from https://nodered.org/docs/hardware/raspberrypi.



alright, this works. thanks.




I am using windows 7. LTS version just like in the website. Actually, this problem as attached in the picture still occur, I thought reinstalling might helps. This error occurs at the node red arduino, error line 6 missing serial port. Does this have any solution?


Node red node arduino problem

Thats because Serialport failed to install, there should have been an error in the install process.

Have you read https://nodered.org/docs/platforms/windows

Try following the section
“Installing Node.js Windows Build Tools” and then try reinstalling



already try it, but does not work. how to solve them?



if it does not work
Then it must give an error
In order to help you, you need to paste the error. Please try installing the arduino node again and copy the error here

Also please list the version of nodejs , npm and node-red you are using



Microsoft Windows [Version 6.1.7601]
Copyright © 2009 Microsoft Corporation. All rights reserved.

25 Jun 08:11:04 - [info]

Welcome to Node-RED

25 Jun 08:11:04 - [info] Node-RED version: v0.18.7
25 Jun 08:11:04 - [info] Node.js version: v8.11.3
25 Jun 08:11:04 - [info] Windows_NT 6.1.7601 x64 LE
25 Jun 08:11:06 - [info] Loading palette nodes
25 Jun 08:11:10 - [info] Dashboard version 2.9.4 started at /ui
25 Jun 08:11:15 - [warn] ------------------------------------------------------
25 Jun 08:11:15 - [warn] [node-red/rpi-gpio] Info : Ignoring Raspberry Pi specif
ic node
25 Jun 08:11:15 - [warn] [node-red/tail] Not currently supported on Windows.
25 Jun 08:11:15 - [warn] [node-red-node-arduino/arduino] Error: Cannot find modu
le ‘serialport’ (line:6)
25 Jun 08:11:15 - [warn] ------------------------------------------------------
25 Jun 08:11:15 - [info] Settings file : \Users\intern.ime.node-red\settings.j
25 Jun 08:11:15 - [info] User directory : \Users\intern.ime.node-red
25 Jun 08:11:15 - [warn] Projects disabled : editorTheme.projects.enabled=false
25 Jun 08:11:15 - [info] Flows file : \Users\intern.ime.node-red\flows_Trai
25 Jun 08:11:15 - [info] Server now running at
25 Jun 08:11:15 - [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.

25 Jun 08:11:15 - [info] Starting flows
25 Jun 08:11:15 - [info] Started flows



That’s not the error you got when installing the serial port.

Using a terminal cd to your nodered directory and try to install the serial port using the command from the README. If it comes up with an error copy that error here.



25 Jun 16:14:27 - [info] Installing module: node-red-node-arduino, version: 0.0.
25 Jun 16:15:08 - [info] Installed module: node-red-node-arduino
25 Jun 16:15:09 - [info] Added node types:
25 Jun 16:15:09 - [info] - node-red-node-arduino:arduino in : Error: Cannot fin
d module ‘serialport’ (line:6)
25 Jun 16:15:09 - [info] - node-red-node-arduino:arduino out : Error: Cannot fi
nd module ‘serialport’ (line:6)
25 Jun 16:15:09 - [info] - node-red-node-arduino:arduino-board : Error: Cannot
find module ‘serialport’ (line:6)



Strange when I install it ( OK I am on a mac) I get the following

 npm i --unsafe-perm node-red-node-arduino

> serialport@6.0.5 install /Users/msetrem/.node-red/node_modules/serialport
> prebuild-install || node-gyp rebuild

+ node-red-node-arduino@0.0.17
added 171 packages and updated 1 package in 24.083s

Are you sure thats the output you get from trying to install the node via the command line?



@youthtech when posting the results of a command it is always a good idea to paste the whole sequence starting with the command you ran, so that we can check for typos etc in the command and also see which directory you have installed from, which can sometimes be important.



yup. maybe something is not right with laptop. I install in my PC is working fine.



Alright. Sorry, I’ll post in full next time.