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

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
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

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.

Have you sorted your problem?

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