Node red doesn't run

Hi
Node red launch when I write sudo node-red-start but doesn't launch with node-red-start. I get this message. have an idea please.
Thank you

nodered.service: Service RestartSec=100ms expired, scheduling restart.
nodered.service: Scheduled restart job, restart counter is at 1.
Stopped Node-RED graphical event wiring tool.
Started Node-RED graphical event wiring tool.
nodered.service: Changing to the requested working directory failed: No such file or directory
nodered.service: Failed at step CHDIR spawning /usr/bin/env: No such file or directory
nodered.service: Main process exited, code=exited, status=200/CHDIR
nodered.service: Failed with result 'exit-code'.
nodered.service: Service RestartSec=100ms expired, scheduling restart.
nodered.service: Scheduled restart job, restart counter is at 2.
Stopped Node-RED graphical event wiring tool.
Started Node-RED graphical event wiring tool.
nodered.service: Changing to the requested working directory failed: No such file or directory
nodered.service: Failed at step CHDIR spawning /usr/bin/env: No such file or directory
nodered.service: Main process exited, code=exited, status=200/CHDIR
nodered.service: Failed with result 'exit-code'.
nodered.service: Service RestartSec=100ms expired, scheduling restart.
nodered.service: Scheduled restart job, restart counter is at 3.
Stopped Node-RED graphical event wiring tool.
Started Node-RED graphical event wiring tool.
nodered.service: Changing to the requested working directory failed: No such file or directory
nodered.service: Failed at step CHDIR spawning /usr/bin/env: No such file or directory
nodered.service: Main process exited, code=exited, status=200/CHDIR
nodered.service: Failed with result 'exit-code'.
nodered.service: Service RestartSec=100ms expired, scheduling restart.
nodered.service: Scheduled restart job, restart counter is at 4.
Stopped Node-RED graphical event wiring tool.
Started Node-RED graphical event wiring tool.
nodered.service: Changing to the requested working directory failed: No such file or directory
nodered.service: Failed at step CHDIR spawning /usr/bin/env: No such file or directory
nodered.service: Main process exited, code=exited, status=200/CHDIR
nodered.service: Failed with result 'exit-code'.
nodered.service: Service RestartSec=100ms expired, scheduling restart.
nodered.service: Scheduled restart job, restart counter is at 5.
Stopped Node-RED graphical event wiring tool.
nodered.service: Start request repeated too quickly.
nodered.service: Failed with result 'exit-code'.
Failed to start Node-RED graphical event wiring tool.

Was this working and then stopped or is it a new install?
If new then how did you install node-red? If it stopped working then what did you change?
Copy/paste here the contents of /lib/systemd/system/nodered.service

You have incorrectly installed it. You should not need sudo in order to run it.

Also, when posting command line or log output please enclose it in triple back-ticks to make it a lot more readable.

At this point, you will need to undo whatever you did to install it and then reinstall following the instructions in the documentation.

It would also help if you told us what platform and OS you are running on (e.g. Pi with Rasbian or whatever).

If you are installing on a Debian based OS (including Rasbian, Ubuntu, Debian, etc), please use Dave's Raspberry Pi script which you will also find via the documentaiton.

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