Node-red throwing error "cannot set properties of undefined (setting 'mode')" when starting

I am trying to connect to the pins of an Arduino Uno. The Firmata Standard example has been uploaded to Arduino Uno. Here's the message that is thrown when the error occurs:
image

Thanks in advance for helping.

What node have you installed to communicate with the arduino? Possibly node-red-contrib-???

In future please copy/paste text output rather than screenshot.

node-red-node-arduino
I'll try to do that copy/paste next. It'd that in that CMD of windows 8 it's not possible.

Could you show us the full startup log please.

I am sure it is possible, possibly CTRL+SHIFT+C.

Context:

PS C:\WINDOWS\system32> node-red
13 Nov 12:00:59 - [info]

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

13 Nov 12:00:59 - [info] Node-RED version: v3.1.0
13 Nov 12:00:59 - [info] Node.js  version: v20.9.0
13 Nov 12:00:59 - [info] Windows_NT 6.3.9600 x64 LE
13 Nov 12:01:01 - [info] Loading palette nodes
13 Nov 12:01:04 - [info] Settings file  : C:\Users\Leite Lima\.node-red\settings.js
13 Nov 12:01:04 - [info] Context store  : 'default' [module=memory]
13 Nov 12:01:04 - [info] User directory : \Users\Leite Lima\.node-red
13 Nov 12:01:04 - [warn] Projects disabled : editorTheme.projects.enabled=false
13 Nov 12:01:04 - [info] Flows file     : \Users\Leite Lima\.node-red\flows.json
13 Nov 12:01:04 - [info] Server now running at http://127.0.0.1:1880/
13 Nov 12:01:04 - [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.
---------------------------------------------------------------------

13 Nov 12:01:04 - [info] Starting flows
13 Nov 12:01:04 - [info] Started flows
13 Nov 12:01:20 - [red] Uncaught Exception:
13 Nov 12:01:20 - [error] TypeError: Cannot set properties of undefined (setting 'mode')
    at Firmata.pinMode (C:\Users\Leite Lima\.node-red\node_modules\firmata-io\lib\firmata.js:947:27)
    at doit (C:\Users\Leite Lima\.node-red\node_modules\node-red-node-arduino\35-arduino.js:154:63)
    at Firmata.<anonymous> (C:\Users\Leite Lima\.node-red\node_modules\node-red-node-arduino\35-arduino.js:194:62)
    at Object.onceWrapper (node:events:628:28)
    at Firmata.emit (node:events:526:35)
    at Firmata.ready (C:\Users\Leite Lima\.node-red\node_modules\firmata-io\lib\firmata.js:733:13)
    at Object.onceWrapper (node:events:628:28)
    at Firmata.emit (node:events:514:28)
    at 106 (C:\Users\Leite Lima\.node-red\node_modules\firmata-io\lib\firmata.js:293:11)
    at SerialPort.<anonymous> (C:\Users\Leite Lima\.node-red\node_modules\firmata-io\lib\firmata.js:640:15)

Stop node red then, in a command window run
node-red --safe
and it will start node-red without starting the flows, which should stop it crashing. Then you can undo whatever change you made that made it fail. When you deploy it will start the flows.