# Module error node-red

**URL:** https://discourse.nodered.org/t/module-error-node-red/50066
**Category:** General
**Created:** [23 August 2021 15:22 UTC](https://discourse.nodered.org/t/module-error-node-red/50066 "2021-08-23T15:22:25Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![owmath](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/owmath/32/46537_2.png) [@owmath](https://discourse.nodered.org/u/owmath)
#### Post date: [23 August 2021 15:22 UTC](https://discourse.nodered.org/t/module-error-node-red/50066/1 "2021-08-23T15:22:25Z")

</div>

how do I format my node-red and fix this error?  
i'm new to node-red, how do I format and reinstall again

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/6/06e5a3a42a05e89bfb394d008876deb3b6fa208f.png)

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [23 August 2021 22:05 UTC](https://discourse.nodered.org/t/module-error-node-red/50066/2 "2021-08-23T22:05:04Z")

</div>

> [@owmath](#):
>
> how do I format and reinstall again

Just follow the instructions again - no need to uninstall.

[https://nodered.org/docs/getting-started/windows](https://nodered.org/docs/getting-started/windows)

PS, I recommend node-js version 14 LTS

---

<div class="post-metadata">

### Author: ![owmath](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/owmath/32/46537_2.png) [@owmath](https://discourse.nodered.org/u/owmath)
#### Post date: [24 August 2021 00:43 UTC](https://discourse.nodered.org/t/module-error-node-red/50066/3 "2021-08-24T00:43:34Z")

</div>

the problem is that I can't use any 'npm' command, it looks like the flood from the same message above

---

<div class="post-metadata">

### Author: ![owmath](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/owmath/32/46537_2.png) [@owmath](https://discourse.nodered.org/u/owmath)
#### Post date: [24 August 2021 00:44 UTC](https://discourse.nodered.org/t/module-error-node-red/50066/4 "2021-08-24T00:44:44Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/1/c1539166e2767a77ae54a5ee954cb7dafd4654f3.png)

no 'npm' command works

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [24 August 2021 00:50 UTC](https://discourse.nodered.org/t/module-error-node-red/50066/5 "2021-08-24T00:50:40Z")

</div>

Did you install it as it says in the directions?  
[https://nodered.org/docs/getting-started/local](https://nodered.org/docs/getting-started/local)

---

<div class="post-metadata">

### Author: ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)
#### Post date: [24 August 2021 00:51 UTC](https://discourse.nodered.org/t/module-error-node-red/50066/6 "2021-08-24T00:51:57Z")

</div>

> [@owmath](#):
>
> no 'npm' command works

Try reinstalling it... (as per Node-Red for [Windows](https://nodered.org/docs/getting-started/windows))

> **[Node.js](https://nodejs.org/en/)**
>
> Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.

Opps, @zenofmud beat me too it 🙂

---

<div class="post-metadata">

### Author: ![owmath](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/owmath/32/46537_2.png) [@owmath](https://discourse.nodered.org/u/owmath)
#### Post date: [24 August 2021 17:42 UTC](https://discourse.nodered.org/t/module-error-node-red/50066/7 "2021-08-24T17:42:58Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/a/fac6a96adc6da3a9cc681a3e7f2cb0bddfebe6ac.png)

i tried to install but i can't delete node\_modules at all  
no 'npm' command works

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [24 August 2021 18:01 UTC](https://discourse.nodered.org/t/module-error-node-red/50066/8 "2021-08-24T18:01:38Z")

</div>

It looks like you have corrupted node\_modules.

  

Completely remove node and node\_modules ...

HOW TO: [How to completely remove node.js from Windows - Stack Overflow](https://stackoverflow.com/questions/20711240/how-to-completely-remove-node-js-from-windows)

  

THEN - install node-js V14 LTS

  

THEN - install node-red again...

> [@Steve-Mcl](#):
>
> [Running on Windows : Node-RED](https://nodered.org/docs/getting-started/windows)
> 
> PS, I recommend node-js version 14 LTS

---

<div class="post-metadata">

### Author: ![owmath](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/owmath/32/46537_2.png) [@owmath](https://discourse.nodered.org/u/owmath)
#### Post date: [24 August 2021 20:12 UTC](https://discourse.nodered.org/t/module-error-node-red/50066/9 "2021-08-24T20:12:11Z")

</div>

thank you very much!

---

<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: [23 October 2021 20:12 UTC](https://discourse.nodered.org/t/module-error-node-red/50066/10 "2021-10-23T20:12:30Z")

</div>

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