Getting error while running with custom settings.js file

  • Does rubysettings.js exist in C:\Users\thakusu\Desktop\Ruby_Project\NodeRed\?
  • Does the account you run node-red with have access to user thakusu desktop folder?

impossible to help if you dont provide a copy of your custom settings.js file.

If you are running node-red from source...

Open the project folder then

  1. VSCODE: Modify launch.json ...
  {
     "version": "0.2.0",
     "configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "Launch Program",
            "skipFiles": [
                "<node_internals>/**"
            ],
            "env": { "NODE_ENV": "development" },
            "preLaunchTask": "npm: build-dev",
            "program": "${workspaceFolder}\\packages\\node_modules\\node-red\\red.js"
        }
     ]
  }
  1. VSCODE: Add an entry in tasks.json
{
    "version": "2.0.0",
    "tasks": [
         {
			"type": "npm",
			"script": "build-dev",
			"group": "build",
			"problemMatcher": [],
			"label": "npm: build-dev",
			"detail": "build-dev"
         }
    ]
}
  1. Press F5 to start debugging

If you are running from NPM Installed node-red...

see How to proper debug custom node - #13 by Steve-Mcl

1 Like