Node-RED installed, yet does not work

Hi,

Node-RED used to work until yesterday. Then it stopped.

I uninstalled Node-RED and Node.js, then reinstalled.

Here's how the Node-RED install went:
c:\Users\ronen.perets\AppData\Roaming\npm>npm install -g --unsafe-perm node-red
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated bcrypt@3.0.8: versions < v5.0.0 do not handle NUL in passwords properly
C:\Users\ronen.perets\AppData\Roaming\npm\node-red-pi -> C:\Users\ronen.perets\AppData\Roaming\npm\node_modules\node-red\bin\node-red-pi
C:\Users\ronen.perets\AppData\Roaming\npm\node-red -> C:\Users\ronen.perets\AppData\Roaming\npm\node_modules\node-red\red.js

  • node-red@1.1.3
    updated 1 package in 6.894s

When I start Node-RED and point the browser to localhost:1880, Node-RED shows in all its glory, HOWEVER no button works:
Manage Pallete - Nothing happens
Double click on node - Nothing happens
Adding a Flow Tab - Nothing happens

When I try to add a node and deploy I get a message that deploy failed with config.forEach issue:

Also I get the following message on the browser console:
red.min.js:16 Uncaught TypeError: $(...).size is not a function
at o (red.min.js:16)
at Object.core:add-flow (red.min.js:16)
at Object.invoke (red.min.js:16)
at HTMLAnchorElement. (red.min.js:16)
at HTMLAnchorElement.dispatch (vendor.js:2)
at HTMLAnchorElement.v.handle (vendor.js:2)

What version of node.js do you have?

Can you list the Node-RED startup log?

What version of Windows and what browser are you using?

What version of node.js do you have?

11 Sep 09:40:20 - [info] Node-RED version: v1.1.3
11 Sep 09:40:20 - [info] Node.js version: v12.18.3
11 Sep 09:40:20 - [info] Windows_NT 10.0.18362 x64 LE
11 Sep 09:40:22 - [info] Loading palette nodes
11 Sep 09:40:26 - [info] Dashboard version 2.23.3 started at /ui

Can you list the Node-RED startup log?

Welcome to Node-RED

11 Sep 09:43:49 - [info] Node-RED version: v1.1.3
11 Sep 09:43:49 - [info] Node.js version: v12.18.3
11 Sep 09:43:49 - [info] Windows_NT 10.0.18362 x64 LE
11 Sep 09:43:49 - [info] Loading palette nodes
11 Sep 09:43:50 - [info] Dashboard version 2.23.3 started at /ui
11 Sep 09:43:50 - [info] Settings file : \Users\ronen.perets.node-red\settings.js
11 Sep 09:43:50 - [info] Context store : 'default' [module=memory]
11 Sep 09:43:50 - [info] User directory : \Users\ronen.perets.node-red
11 Sep 09:43:50 - [warn] Projects disabled : editorTheme.projects.enabled=false
11 Sep 09:43:50 - [info] Flows file : \Users\ronen.perets.node-red\flows_DESKTOP-LHMJKLP.json
11 Sep 09:43:50 - [info] Creating new flow file
11 Sep 09:43:50 - [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.
---------------------------------------------------------------------

11 Sep 09:43:50 - [info] Starting flows
11 Sep 09:43:50 - [info] Started flows
11 Sep 09:43:51 - [info] Server now running at http://127.0.0.1:1880/
11 Sep 09:44:15 - [info] Stopping flows
11 Sep 09:44:15 - [info] Stopped flows

What version of Windows and what browser are you using?

Win 10 Pro: Version 10.0.18362 Build 18362
Chrome: Version 85.0.4183.102 (Official Build) (64-bit)

red.min.js:16 Versions
red.min.js:16 jQuery 3.5.1
red.min.js:16 jQuery UI 1.12.1
red.min.js:16 ACE 1.4.3
red.min.js:16 D3 3.0.3
red.min.js:16 Projects disabled
red.min.js:16 Uncaught TypeError: $(...).button is not a function
at i (red.min.js:16)
at Object.show (red.min.js:16)
at Object.i [as show] (red.min.js:16)
at Object. (red.min.js:16)
at c (red.min.js:16)
at HTMLAnchorElement. (red.min.js:16)
at HTMLAnchorElement.dispatch (vendor.js:2)
at HTMLAnchorElement.v.handle (vendor.js:2)

That is different to the user you were logged in with when installing Node-RED:

So you have done something odd to the setup since you would normally expect to see:

Settings file : \Users\ronen.perets\.node-red\settings.js

Note the extra backslash.

Thank you for your help.
However the '' is there in the log, probably got deleted when copy&paste. It now shows:
\Users\ronen.perets.node-red\settings.js

it seems it is seen as escape code for the '.' . It is there though.
image

You need to wrap that in back-ticks because Discourse is swallowing the backslash.

Starting to give up.
I removed node-red, removed all folders related to it, removed node.js and npm and reinstalled all.
Still same issue.
Funny thing is that I have 3 custom nodes that I installed and uninstalled but they still show up in the palette even after uninstall and install of node-red

When you installed node-red globally, did you use an elevated command prompt?

You might try using my alternate installer or simply follow the same instructions to install node-red locally. That way you don't need to mess with admin rights.