# Failed to start node-red. "path" argument must be of type string. Received an instance of Object

**URL:** https://discourse.nodered.org/t/failed-to-start-node-red-path-argument-must-be-of-type-string-received-an-instance-of-object/26517
**Category:** General
**Created:** [12 May 2020 10:26 UTC](https://discourse.nodered.org/t/failed-to-start-node-red-path-argument-must-be-of-type-string-received-an-instance-of-object/26517 "2020-05-12T10:26:57Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![zuhaib446](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zuhaib446/32/21744_2.png) [@zuhaib446](https://discourse.nodered.org/u/zuhaib446)
#### Post date: [12 May 2020 10:26 UTC](https://discourse.nodered.org/t/failed-to-start-node-red-path-argument-must-be-of-type-string-received-an-instance-of-object/26517/1 "2020-05-12T10:26:57Z")

</div>

12 May 15:01:21 - [info] Node-RED version: v1.0.3  
12 May 15:01:21 - [info] Node.js version: v12.16.2  
12 May 15:01:21 - [info] Windows\_NT 10.0.17763 x64 LE  
12 May 15:01:22 - [info] Loading palette nodes  
12 May 15:01:22 - [error] Failed to start server:  
12 May 15:01:22 - [error] TypeError [ERR\_INVALID\_ARG\_TYPE]: The "path" argument must be of type string. Received an instance of Object  
at validateString (internal/validators.js:117:11)  
at Object.join (path.js:375:7)  
at getModuleNodeFiles (C:\Users\zuhai\AppData\Roaming\npm\node\_modules\node-red\node\_modules@node-red\registry\lib\localfilesystem.js:207:29)  
at C:\Users\zuhai\AppData\Roaming\npm\node\_modules\node-red\node\_modules@node-red\registry\lib\localfilesystem.js:320:35  
at Array.forEach ()  
at Object.getNodeFiles (C:\Users\zuhai\AppData\Roaming\npm\node\_modules\node-red\node\_modules@node-red\registry\lib\localfilesystem.js:319:21)  
at load (C:\Users\zuhai\AppData\Roaming\npm\node\_modules\node-red\node\_modules@node-red\registry\lib\loader.js:44:37)  
at processTicksAndRejections (internal/process/task\_queues.js:97:5)

---

<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: [12 May 2020 10:35 UTC](https://discourse.nodered.org/t/failed-to-start-node-red-path-argument-must-be-of-type-string-received-an-instance-of-object/26517/2 "2020-05-12T10:35:00Z")

</div>

How did you launch node-red? What was the command line you used?

Have you modified settings.js at any time before this happened?

---

<div class="post-metadata">

### Author: ![zuhaib446](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zuhaib446/32/21744_2.png) [@zuhaib446](https://discourse.nodered.org/u/zuhaib446)
#### Post date: [12 May 2020 10:37 UTC](https://discourse.nodered.org/t/failed-to-start-node-red-path-argument-must-be-of-type-string-received-an-instance-of-object/26517/3 "2020-05-12T10:37:43Z")

</div>

for start i type node-red

---

<div class="post-metadata">

### Author: ![zuhaib446](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zuhaib446/32/21744_2.png) [@zuhaib446](https://discourse.nodered.org/u/zuhaib446)
#### Post date: [12 May 2020 10:38 UTC](https://discourse.nodered.org/t/failed-to-start-node-red-path-argument-must-be-of-type-string-received-an-instance-of-object/26517/4 "2020-05-12T10:38:58Z")

</div>

i try to create custom module and install it before and it work fine..

---

<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: [12 May 2020 10:39 UTC](https://discourse.nodered.org/t/failed-to-start-node-red-path-argument-must-be-of-type-string-received-an-instance-of-object/26517/5 "2020-05-12T10:39:34Z")

</div>

then my suggestion would be uninstall the custom module and try again.

---

<div class="post-metadata">

### Author: ![zuhaib446](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zuhaib446/32/21744_2.png) [@zuhaib446](https://discourse.nodered.org/u/zuhaib446)
#### Post date: [12 May 2020 10:40 UTC](https://discourse.nodered.org/t/failed-to-start-node-red-path-argument-must-be-of-type-string-received-an-instance-of-object/26517/6 "2020-05-12T10:40:28Z")

</div>

i uninstall it but still showing me this error

---

<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: [12 May 2020 12:32 UTC](https://discourse.nodered.org/t/failed-to-start-node-red-path-argument-must-be-of-type-string-received-an-instance-of-object/26517/7 "2020-05-12T12:32:34Z")

</div>

As @Steve-Mcl asked, have you changed settings.j?. If so then it is probably an error in that file.

---

<div class="post-metadata">

### Author: ![zuhaib446](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zuhaib446/32/21744_2.png) [@zuhaib446](https://discourse.nodered.org/u/zuhaib446)
#### Post date: [13 May 2020 08:13 UTC](https://discourse.nodered.org/t/failed-to-start-node-red-path-argument-must-be-of-type-string-received-an-instance-of-object/26517/8 "2020-05-13T08:13:17Z")

</div>

its working fine now . i uninstall node-red and reinstall 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: [13 May 2020 08:22 UTC](https://discourse.nodered.org/t/failed-to-start-node-red-path-argument-must-be-of-type-string-received-an-instance-of-object/26517/9 "2020-05-13T08:22:03Z")

</div>

@zuhaib446 glad you're sorted.

To anyone else reading this in the future, please don't blindly uninstall & reinstall. That is like using a sledgehammer to crack a nut.

It would be much better to understand why this happened.

---

<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: [27 May 2020 08:22 UTC](https://discourse.nodered.org/t/failed-to-start-node-red-path-argument-must-be-of-type-string-received-an-instance-of-object/26517/10 "2020-05-27T08:22:03Z")

</div>

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