1|Node-Red | Error loading settings file: /root/.node-red/settings.js

When i try to start node red using PM2 its gives me below error:
0|Node-Red | Error loading settings file: /root/.node-red/settings.js
0|Node-Red | Error loading settings file: /root/.node-red/settings.js

0|Node-Red | Error loading settings file: /root/.node-red/settings.js
PM2 | App name:Node-Red id:0 disconnected
PM2 | App [Node-Red:0] exited with code [0] via signal [SIGINT]
PM2 | App [Node-Red:0] starting in -cluster mode

I am not able to find the exact error in my settings.js

did you modify it?

Do you have a code editor like VSCode that you can use to check it?

  1. What device are you running on?
  2. how did you install NR?