I can't open the node-red

Can you please provide full version.

its on the other PC, i will try to get the copy/paste

node 16 is working fine.

EDIT:

C:\Users\oee.hsr>node-red
11 Apr 13:34:45 - [info]

Welcome to Node-RED
===================

11 Apr 13:34:45 - [info] Node-RED version: v3.1.8
11 Apr 13:34:45 - [info] Node.js  version: v16.20.2
11 Apr 13:34:45 - [info] Windows_NT 10.0.22631 x64 LE
11 Apr 13:34:46 - [info] Loading palette nodes
11 Apr 13:34:47 - [info] Settings file  : C:\Users\oee.hsr\.node-red\settings.js
11 Apr 13:34:47 - [info] Context store  : 'default' [module=memory]
11 Apr 13:34:47 - [info] User directory : C:\Users\oee.hsr\.node-red
11 Apr 13:34:47 - [warn] Projects disabled : editorTheme.projects.enabled=false
11 Apr 13:34:47 - [info] Flows file     : C:\Users\oee.hsr\.node-red\flows.json
11 Apr 13:34:47 - [info] Creating new flow file
11 Apr 13:34:47 - [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 Apr 13:34:47 - [info] Server now running at http://127.0.0.1:1880/
11 Apr 13:34:47 - [warn] Encrypted credentials not found
11 Apr 13:34:47 - [info] Starting flows
11 Apr 13:34:47 - [info] Started flows
11 Apr 13:36:29 - [info] Stopping flows
11 Apr 13:36:29 - [info] Stopped flows

The point is i suspect somewhere between Node 18.19.0 and Latest nodejs release, something has changed. I cannot ascertain that from the Major number only.

Please provide FULL Node Version numbers.

Node 18 not working....


C:\Users\oee.hsr>node-red
11 Apr 13:29:34 - [info]

Welcome to Node-RED
===================

11 Apr 13:29:34 - [info] Node-RED version: v3.1.8
11 Apr 13:29:34 - [info] Node.js  version: v18.20.2
11 Apr 13:29:34 - [info] Windows_NT 10.0.22631 x64 LE
11 Apr 13:29:34 - [error] Failed to start server:
11 Apr 13:29:34 - [error] Error: spawn EINVAL
    at ChildProcess.spawn (node:internal/child_process:414:11)
    at spawn (node:child_process:761:9)
    at Object.execFile (node:child_process:351:17)
    at C:\Users\oee.hsr\AppData\Roaming\npm\node_modules\node-red\node_modules\@node-red\registry\lib\installer.js:581:27
    at new Promise (<anonymous>)
    at Object.checkPrereq (C:\Users\oee.hsr\AppData\Roaming\npm\node_modules\node-red\node_modules\@node-red\registry\lib\installer.js:580:16)
    at Object.load (C:\Users\oee.hsr\AppData\Roaming\npm\node_modules\node-red\node_modules\@node-red\registry\lib\index.js:59:22)
    at C:\Users\oee.hsr\AppData\Roaming\npm\node_modules\node-red\node_modules\@node-red\runtime\lib\index.js:162:29

Please, if you can, try with Node 18.19.0

i have edited my replies of both working and not working

nothing else changed

only node version 18 and 16

i cant find that in the drop down.

image


From the donwload page Node.js ā€” Download Node.jsĀ® :

Check out all available Node.js download options

i have never installed like this., let me try

sorry, i am not able to do. i can only do with an msi file.

on the release page: Node.js ā€” Node v18.19.0 (LTS) ...

Windows 64-bit Installer: https://nodejs.org/dist/v18.19.0/node-v18.19.0-x64.msi

1 Like

C:\Users\oee.hsr>node-red
11 Apr 14:22:40 - [info]

Welcome to Node-RED
===================

11 Apr 14:22:40 - [info] Node-RED version: v3.1.8
11 Apr 14:22:40 - [info] Node.js  version: v18.19.0
11 Apr 14:22:40 - [info] Windows_NT 10.0.22631 ia32 LE
11 Apr 14:22:41 - [info] Loading palette nodes
11 Apr 14:22:42 - [info] Settings file  : C:\Users\oee.hsr\.node-red\settings.js
11 Apr 14:22:42 - [info] Context store  : 'default' [module=memory]
11 Apr 14:22:42 - [info] User directory : \Users\oee.hsr\.node-red
11 Apr 14:22:42 - [warn] Projects disabled : editorTheme.projects.enabled=false
11 Apr 14:22:42 - [info] Flows file     : \Users\oee.hsr\.node-red\flows.json
11 Apr 14:22:42 - [info] Creating new flow file
11 Apr 14:22:42 - [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 Apr 14:22:42 - [warn] Encrypted credentials not found
11 Apr 14:22:42 - [info] Server now running at http://127.0.0.1:1880/
11 Apr 14:22:42 - [info] Starting flows
11 Apr 14:22:42 - [info] Started flows

Thank you. This looks promising.

Certainly looking like something has changed in most recent LTS of V18 and V20.

Would be good to know if anyone is running the version IMMEDIATELY before current LTS versions 18.20.2 and 20.12.2.

Is anyone running node-red on 18.20.1 or 20.12.1?

The latest versions of Node 18/20 include a security fix that has broken Node-RED on Windows.

We'll have a fix for Node-RED later today.

2 Likes

On another machine, successfully running with 20.11.1

11 Apr 15:17:25 - [info] 

Welcome to Node-RED
===================

11 Apr 15:17:25 - [info] Node-RED version: v3.1.0-beta.2
11 Apr 15:17:25 - [info] Node.js  version: v20.11.1
11 Apr 15:17:25 - [info] Windows_NT 10.0.19045 x64 LE
11 Apr 15:17:28 - [info] Loading palette nodes
11 Apr 15:17:39 - [info] Dashboard version 3.6.5 started at /ui
11 Apr 15:17:41 - [info] Settings file  : C:\Users\OEEHo\NR-Live\settings.js
11 Apr 15:17:41 - [info] HTTP Static    : C:\temp > /
11 Apr 15:17:41 - [info] Context store  : 'memoryOnly' [module=memory]
11 Apr 15:17:41 - [info] Context store  : 'file' [module=localfilesystem]
11 Apr 15:17:41 - [info] User directory : C:\Windows\system32\config\systemprofile\.node-red
11 Apr 15:17:41 - [warn] Projects disabled : set editorTheme.projects.enabled=true to enable
11 Apr 15:17:41 - [info] Flows file     : c:/users/oeeho/nr-live/flows.json
11 Apr 15:17:41 - [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 Apr 15:17:42 - [info] Server now running at http://127.0.0.1:1885/
11 Apr 15:17:42 - [info] Starting flows

1 Like

Thanks Knolleary and Steve-Mcl - appreciate the help!

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