# After install first custom node using npm command node red not running

**URL:** <https://discourse.nodered.org/t/after-install-first-custom-node-using-npm-command-node-red-not-running/80662>\
**Category:** Developing Nodes\
**Created:** [19 August 2023 13:46 UTC](https://discourse.nodered.org/t/after-install-first-custom-node-using-npm-command-node-red-not-running/80662 "2023-08-19T13:46:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bubainayak1](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bubainayak1/32/81994_2.png) [@bubainayak1](https://discourse.nodered.org/u/bubainayak1)\
**Post date:** [19 August 2023 13:46 UTC](https://discourse.nodered.org/t/after-install-first-custom-node-using-npm-command-node-red-not-running/80662/1 "2023-08-19T13:46:43Z")

</div>

After creating the custom and install it using npm install my node red is not running :  
I follow the node red official page document for create custom node [Creating your first node : Node-RED](https://nodered.org/docs/creating-nodes/first-node)  
below I have given the error details while running the node-red please help me out :  
C:\Users\Soumen Nayak\>node-red  
19 Aug 19:06:58 - [info]

# Welcome to Node-RED

19 Aug 19:06:58 - [info] Node-RED version: v3.0.2  
19 Aug 19:06:58 - [info] Node.js version: v18.17.1  
19 Aug 19:06:58 - [info] Windows\_NT 10.0.18363 x64 LE  
19 Aug 19:06:59 - [info] Loading palette nodes  
19 Aug 19:07:00 - [error] Failed to start server:  
19 Aug 19:07:00 - [error] TypeError: Cannot read properties of undefined (reading 'forEach')  
at Object.addModule (C:\Users\Soumen Nayak\AppData\Roaming\npm\node\_modules\node-red\node\_modules@node-red\registry\lib\registry.js:195:27)  
at C:\Users\Soumen Nayak\AppData\Roaming\npm\node\_modules\node-red\node\_modules@node-red\registry\lib\loader.js:153:34

Thanks

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [19 August 2023 15:04 UTC](https://discourse.nodered.org/t/after-install-first-custom-node-using-npm-command-node-red-not-running/80662/2 "2023-08-19T15:04:57Z")

</div>

Show us what you have in your js and html files.

**[Edit]** Also show us the package.json file that is in your .node-red folder please.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [23 August 2023 10:45 UTC](https://discourse.nodered.org/t/after-install-first-custom-node-using-npm-command-node-red-not-running/80662/3 "2023-08-23T10:45:30Z")

</div>

Have you sorted your problem?

---

<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 October 2023 10:45 UTC](https://discourse.nodered.org/t/after-install-first-custom-node-using-npm-command-node-red-not-running/80662/4 "2023-10-22T10:45:41Z")

</div>

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