I cant start node-red, i followed the steps but keep getting the same error

Microsoft Windows [versão 10.0.19045.5247]
(c) Microsoft Corporation. Todos os direitos reservados.

C:\Users\lusuq>npm install -g --unsafe-perm node-red

added 54 packages, removed 50 packages, and changed 257 packages in 8s

63 packages are looking for funding
run npm fund for details

C:\Users\lusuq>node-red
Error loading settings file: \Users\lusuq.node-red\settings.js

C:\Users\lusuq>

Hi Aguirato, welcome to the Node-RED forum.

Please enclose code, command lines and logs as pre-formatted text for readability.

That file path is missing a \, I think it should be:

\Users\lusuq\.node-red\settings.js

But assuming that the install worked without errors, it may be that you simply need to open a new PowerShell window. Or, at an extreme, you might need to log out and back in again to pick up the updated environment variables.

I used CMD to instal, followed all the steps but the \setting.js file is missing.
I loged out and back in but nothing :confused:

The settings file is automatically created the first time you run Node-RED. It is initially copied from the Node-RED package. You can manually copy it if you really need to but you shouldn't need to.

Where can i find this file?
It didnt star once :frowning:

You can find out where a global install of Node-RED is installed by running npm list -g.

Do you have a .node-red directory in c:\Users\lusuq? (you may need to turn on "show hidden files" If it exists, check file permissions. Better still, rename it to .node-red-old and just start node-red.

What does node -v show?

There is no file there

Microsoft Windows [versão 10.0.19045.5371]
(c) Microsoft Corporation. Todos os direitos reservados.

C:\WINDOWS\system32> node -v
v22.14.0

C:\WINDOWS\system32> node-red
Error loading settings file: \Users\lusuq\.node-red\settings.js

C:\WINDOWS\system32>

Please show the output from dir c:\users\luduq\.node-red and the output of npm list -g

This is the output

Microsoft Windows [versão 10.0.19045.5371]
(c) Microsoft Corporation. Todos os direitos reservados.

C:\Users\lusuq\.node-red>npm list -g
C:\Users\lusuq\AppData\Roaming\npm
+-- node-red@4.0.8
`-- npm@11.1.0


C:\Users\lusuq\.node-red>

I can only assume that something went wrong with the node-red install.

Maybe try re-running

npm install -g node-red@latest --production --unsafe-perm

I tryed re-running more than 5 times :confused:
Im going to give up

Please do a dir in this directory

Also, check the permissions.

Better still, just delete the C:\Users\lusuq\.node-red dir and run node-red again.