# Serial port COM4 error: Error: Opening COM4: File not found

**URL:** https://discourse.nodered.org/t/serial-port-com4-error-error-opening-com4-file-not-found/49756
**Category:** General
**Created:** [15 August 2021 17:49 UTC](https://discourse.nodered.org/t/serial-port-com4-error-error-opening-com4-file-not-found/49756 "2021-08-15T17:49:30Z")
**Posts on this page:** 16
**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: [15 August 2021 17:49 UTC](https://discourse.nodered.org/t/serial-port-com4-error-error-opening-com4-file-not-found/49756/1 "2021-08-15T17:49:31Z")

</div>

Good afternoon, i have a problem starting my node-red.  
when I run the command to open "node-red", it shows me serial port COM4 error: Error: Opening COM4: File not found.  
Before this error happened, I managed to perform an LED test connected with the Arduino and everything worked correctly, when I went to perform a test with the DHT22 sensor and then closed my Node-Red, this error appears.  
The Arduino IDE works normally with the COM4 port, I can normally program the program on it and run it.  
I want to open my Node-Red, how can I solve this?

 ![erro](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/5/95ab595a9ba6ac57c29d4e09899c9ccfe885daa0.png)

Thanks, Matheus

---

<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: [15 August 2021 17:59 UTC](https://discourse.nodered.org/t/serial-port-com4-error-error-opening-com4-file-not-found/49756/2 "2021-08-15T17:59:17Z")

</div>

Does device manager show you have a COM4?

Is there any application still open & accessing COM4 (e.g. is Arduino IDE still open when you start node-red)

---

<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: [15 August 2021 18:05 UTC](https://discourse.nodered.org/t/serial-port-com4-error-error-opening-com4-file-not-found/49756/3 "2021-08-15T18:05:17Z")

</div>

Yes, the manager recognizes the COM4 input so much that I can run the program directly in the Arduino IDE.

 ![reconhece](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/5/45210abbb092d9f306d5565ce0c949adc3d44828.png)

There is no application open when I try to start Node-Red..

---

<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: [15 August 2021 18:15 UTC](https://discourse.nodered.org/t/serial-port-com4-error-error-opening-com4-file-not-found/49756/4 "2021-08-15T18:15:10Z")

</div>

> [@owmath](#):
>
> There is no application open when I try to start Node-Red

I would restart your PC - potentially something has a hold on the port.

Alternatively, try this: [https://www.equisys.com/Support/Technotes/howto-identifying-which-process-is-using-the-serial-port](https://www.equisys.com/Support/Technotes/howto-identifying-which-process-is-using-the-serial-port)

* * *

PS,

- what version of `node` and `node-red` are you running?
- what does `npm list serialport` show...  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/c/4ca6e5d77acc71a8723574d2a3d1bef0370cea18.png)

---

<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: [15 August 2021 18:18 UTC](https://discourse.nodered.org/t/serial-port-com4-error-error-opening-com4-file-not-found/49756/5 "2021-08-15T18:18:53Z")

</div>

![error](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/f/9fb2fdf6427eea6d3da19a31200780d89e5cca62.png)

check this screenshot 😢

---

<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: [15 August 2021 18:19 UTC](https://discourse.nodered.org/t/serial-port-com4-error-error-opening-com4-file-not-found/49756/6 "2021-08-15T18:19:58Z")

</div>

you did not CD into **your** `.node-red` folder - look at my screenshot.

---

<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: [15 August 2021 18:25 UTC](https://discourse.nodered.org/t/serial-port-com4-error-error-opening-com4-file-not-found/49756/7 "2021-08-15T18:25:13Z")

</div>

![errorr](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/9/49e9ddaf27ff1f49b09c4c4ab17e5cd58c3ccdbc.png)

is the command to enter the folder right? I can't get into node-red CD

---

<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: [15 August 2021 19:04 UTC](https://discourse.nodered.org/t/serial-port-com4-error-error-opening-com4-file-not-found/49756/8 "2021-08-15T19:04:28Z")

</div>

no.

from your earlier screenshot i see your user name is `user`

So enter  
`cd c:\users\user\.node-red`  
then  
`npm list serialport`

ALSO - you never stated what version of node-red you are running - it is listed in the console when you start node-red (it is missing from the opt your first screenshot)

---

<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: [15 August 2021 19:06 UTC](https://discourse.nodered.org/t/serial-port-com4-error-error-opening-com4-file-not-found/49756/9 "2021-08-15T19:06:07Z")

</div>

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

there's the error, how do I fix it?

---

<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: [15 August 2021 19:07 UTC](https://discourse.nodered.org/t/serial-port-com4-error-error-opening-com4-file-not-found/49756/10 "2021-08-15T19:07:06Z")

</div>

Sorry, its a typo by me.

So enter  
`cd c:\users\user\.node-red`  
then  
`npm list serialport`

  
  

ALSO - you never stated what version of node-red you are running - it is listed in the console when you start node-red (it is missing from the top your first screenshot)

---

<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: [15 August 2021 19:08 UTC](https://discourse.nodered.org/t/serial-port-com4-error-error-opening-com4-file-not-found/49756/11 "2021-08-15T19:08:21Z")

</div>

![seriall](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/0/60879fcbdd72576308a56e32455f44ccd271ac51.png)

check

---

<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: [15 August 2021 19:15 UTC](https://discourse.nodered.org/t/serial-port-com4-error-error-opening-com4-file-not-found/49756/12 "2021-08-15T19:15:20Z")

</div>

ok, so do you have any arduino nodes in your flows?

use ctrl-f to search node-red flows for `aurduino`

Perhaps you have added a node and set it to use COM4?

---

<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: [15 August 2021 19:17 UTC](https://discourse.nodered.org/t/serial-port-com4-error-error-opening-com4-file-not-found/49756/14 "2021-08-15T19:17:25Z")

</div>

Yes, I used Arduino node and configured to use COM4, how do I delete? I can't get into the dashboard

---

<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: [15 August 2021 19:18 UTC](https://discourse.nodered.org/t/serial-port-com4-error-error-opening-com4-file-not-found/49756/15 "2021-08-15T19:18:21Z")

</div>

Its not dashboard (its the node-red editor)

start node-red in safe mode

```auto
node-red --safe

```

find and delete, then deploy.

---

<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: [15 August 2021 19:21 UTC](https://discourse.nodered.org/t/serial-port-com4-error-error-opening-com4-file-not-found/49756/16 "2021-08-15T19:21:40Z")

</div>

incredible friend, thank you very much you found the solution! thank you so 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: [29 August 2021 19:22 UTC](https://discourse.nodered.org/t/serial-port-com4-error-error-opening-com4-file-not-found/49756/17 "2021-08-29T19:22:31Z")

</div>

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