Npm start error

$ npm start

node-red@1.2.26 start E:\git\gitlab-hx\node-red
node packages/node_modules/node-red/red.js

23 Jun 17:10:54 - [info]

Welcome to Node-RED

23 Jun 17:10:54 - [info] Node-RED version: v1.2.10
23 Jun 17:10:54 - [info] Node.js version: v12.20.2
23 Jun 17:10:54 - [info] Windows_NT 10.0.19041 x64 LE
23 Jun 17:10:54 - [info] Loading palette nodes
Missing ENV var CONFIG_PATH
23 Jun 17:10:59 - [info] Dashboard version 2.28.2 started at /ui
23 Jun 17:11:00 - [warn] ------------------------------------------------------
23 Jun 17:11:00 - [warn] [node-red-contrib-aedes/aedes-mqtt-broker] Error: Could not locate the bindings file. Tried:
→ C:\Users\Administrator.node-red\node_modules\snappy\build\binding.node
→ C:\Users\Administrator.node-red\node_modules\snappy\build\Debug\binding.node
→ C:\Users\Administrator.node-red\node_modules\snappy\build\Release\binding.node
→ C:\Users\Administrator.node-red\node_modules\snappy\out\Debug\binding.node
→ C:\Users\Administrator.node-red\node_modules\snappy\Debug\binding.node
→ C:\Users\Administrator.node-red\node_modules\snappy\out\Release\binding.node
→ C:\Users\Administrator.node-red\node_modules\snappy\Release\binding.node
→ C:\Users\Administrator.node-red\node_modules\snappy\build\default\binding.node
→ C:\Users\Administrator.node-red\node_modules\snappy\compiled\12.20.2\win32\x64\binding.node
23 Jun 17:11:00 - [warn] ------------------------------------------------------
23 Jun 17:11:00 - [info] Settings file : C:\Users\Administrator.node-red\settings.js
23 Jun 17:11:00 - [info] Context store : 'default' [module=memory]
23 Jun 17:11:00 - [info] User directory : C:\Users\Administrator.node-red
23 Jun 17:11:00 - [warn] Projects disabled : editorTheme.projects.enabled=false
23 Jun 17:11:00 - [info] Flows file : C:\Users\Administrator.node-red\flows_hexin-wx.json
23 Jun 17:11:00 - [info] Server now running at http://127.0.0.1:1881/
[Error: ENOENT: no such file or directory, open 'E:\sys\class\leds\led:run\brightness'] {
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'E:\sys\class\leds\led:run\brightness'
}
23 Jun 17:11:00 - [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.

23 Jun 17:11:00 - [info] Starting flows
23 Jun 17:11:00 - [info] Started flows
[Error: ENOENT: no such file or directory, open 'E:\sys\class\leds\led:run\brightness'] {
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'E:\sys\class\leds\led:run\brightness'
}

npm run build error

$ npm run build

node-red@1.2.26 build E:\git\gitlab-hx\node-red
grunt build

Running "clean:build" (clean) task

2 paths cleaned.

Running "jsonlint:messages" (jsonlint) task

7 files lint free.

Running "jsonlint:keymaps" (jsonlint) task

0 files lint free.

Running "concat:build" (concat) task

Running "concat:vendor" (concat) task

Running "copy:build" (copy) task
Copied 2 files

Running "uglify:build" (uglify) task

Destination packages/node_modules/@node-red/editor-client/public/red/main.min.js not written because src files were empty.
Destination packages/node_modules/@node-red/editor-client/public/vendor/ace/mode-jsonata.js not written because src files were empty.
Destination packages/node_modules/@node-red/editor-client/public/vendor/ace/snippets/jsonata.js not written because src files were empty.
1 files created 0 B → 0 B

Running "sass:build" (sass) task

Running "attachCopyright:js" (attachCopyright) task
Attached copyright to packages/node_modules/@node-red/editor-client/public/red/red.min.js

File packages/node_modules/@node-red/editor-client/public/red/main.min.js not found
Warning: Task "attachCopyright:js" failed. Use --force to continue.

Aborted due to warnings.
npm ERR! code ELIFECYCLE
npm ERR! errno 3
npm ERR! node-red@1.2.26 build: grunt build
npm ERR! Exit status 3
npm ERR!
npm ERR! Failed at the node-red@1.2.26 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2021-06-23T09_15_17_247Z-debug.log

Which error are you asking about?

  1. the error relating to the install of node-red-contrib-aedes/aedes-mqtt-broker.
  2. the error saying 'no such file or directory' relating to the path E:\sys\class\leds\led:run\brightness.

Rebuilding Node-RED from src won't do anything about either of those errors.

For the first error, you need to run npm rebuild node-red-contrib-aedes in your node-red user directory.

For the second error... you need to identify what node you have installed is causing that. It isn't a core node.

The problem is I don't really know how it's caused

I will try these solutions. Thank you

I think this is because I have two source codes running locally, I will continue to try to solve this problem tomorrow, thank you for your help