# Npm start error

**URL:** <https://discourse.nodered.org/t/npm-start-error/47518>\
**Category:** General\
**Created:** [23 June 2021 09:14 UTC](https://discourse.nodered.org/t/npm-start-error/47518 "2021-06-23T09:14:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![stackxin](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@stackxin](https://discourse.nodered.org/u/stackxin)\
**Post date:** [23 June 2021 09:14 UTC](https://discourse.nodered.org/t/npm-start-error/47518/1 "2021-06-23T09:14:16Z")

</div>

$ 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/](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'  
}

---

<div class="post-metadata">

**Author:** ![stackxin](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@stackxin](https://discourse.nodered.org/u/stackxin)\
**Post date:** [23 June 2021 09:15 UTC](https://discourse.nodered.org/t/npm-start-error/47518/2 "2021-06-23T09:15:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [23 June 2021 09:29 UTC](https://discourse.nodered.org/t/npm-start-error/47518/3 "2021-06-23T09:29:08Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![stackxin](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@stackxin](https://discourse.nodered.org/u/stackxin)\
**Post date:** [23 June 2021 09:34 UTC](https://discourse.nodered.org/t/npm-start-error/47518/4 "2021-06-23T09:34:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![stackxin](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@stackxin](https://discourse.nodered.org/u/stackxin)\
**Post date:** [23 June 2021 09:36 UTC](https://discourse.nodered.org/t/npm-start-error/47518/5 "2021-06-23T09:36:57Z")

</div>

I will try these solutions. Thank you

---

<div class="post-metadata">

**Author:** ![stackxin](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@stackxin](https://discourse.nodered.org/u/stackxin)\
**Post date:** [23 June 2021 09:52 UTC](https://discourse.nodered.org/t/npm-start-error/47518/6 "2021-06-23T09:52:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [22 August 2021 09:53 UTC](https://discourse.nodered.org/t/npm-start-error/47518/7 "2021-08-22T09:53:02Z")

</div>

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