# Node-red 1.2.0 won't start

**URL:** <https://discourse.nodered.org/t/node-red-1-2-0-wont-start/34304>\
**Category:** General\
**Created:** [15 October 2020 15:21 UTC](https://discourse.nodered.org/t/node-red-1-2-0-wont-start/34304 "2020-10-15T15:21:26Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Supergiovane](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/supergiovane/32/9716_2.png) [@Supergiovane](https://discourse.nodered.org/u/Supergiovane)\
**Post date:** [15 October 2020 15:21 UTC](https://discourse.nodered.org/t/node-red-1-2-0-wont-start/34304/1 "2020-10-15T15:21:26Z")

</div>

Hi.  
First of all, thank you for this great update on node-red.  
After installing node-red 1.2.0, node-red won't start, giving me this error:

internal/modules/cjs/loader.js:548  
throw e;  
^

Error: Package exports for '/usr/local/lib/node\_modules/node-red/node\_modules/async-mutex' do not define a valid '.' target  
at resolveExportsTarget (internal/modules/cjs/loader.js:545:13)  
at applyExports (internal/modules/cjs/loader.js:459:14)  
at resolveExports (internal/modules/cjs/loader.js:508:12)  
at Function.Module.\_findPath (internal/modules/cjs/loader.js:577:20)  
at Function.Module.\_resolveFilename (internal/modules/cjs/loader.js:879:27)  
at Function.Module.\_load (internal/modules/cjs/loader.js:785:27)  
at Module.require (internal/modules/cjs/loader.js:956:19)  
at require (internal/modules/cjs/helpers.js:74:18)  
at Object. (/usr/local/lib/node\_modules/node-red/node\_modules/@node-red/runtime/lib/api/flows.js:37:13)  
at Module.\_compile (internal/modules/cjs/loader.js:1063:30) {  
code: 'MODULE\_NOT\_FOUND'

I'm updating from 1.1.3 to 1.2.0 a VM on Debian.  
Node version is v13.1.0  
I reverted to 1.1.3 for now.  
It should be something in the async-mutex module, but it should not crash in this manner.  
Have i missing something?  
Thanks.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [15 October 2020 15:26 UTC](https://discourse.nodered.org/t/node-red-1-2-0-wont-start/34304/2 "2020-10-15T15:26:34Z")

</div>

> [@Supergiovane](#):
>
> Package exports for '/usr/local/lib/node\_modules/node-red/node\_modules/async-mutex' do not define a valid '.' target

What version of node.js are you using?

---

<div class="post-metadata">

**Author:** ![Supergiovane](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/supergiovane/32/9716_2.png) [@Supergiovane](https://discourse.nodered.org/u/Supergiovane)\
**Post date:** [15 October 2020 15:28 UTC](https://discourse.nodered.org/t/node-red-1-2-0-wont-start/34304/3 "2020-10-15T15:28:53Z")

</div>

Node is v13.1.0

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [15 October 2020 15:31 UTC](https://discourse.nodered.org/t/node-red-1-2-0-wont-start/34304/4 "2020-10-15T15:31:04Z")

</div>

> [@Supergiovane](#):
>
> Package exports for '/usr/local/lib/node\_modules/node-red/node\_modules/async-mutex' do not define a valid '.' target

Looks like a known issue with the 13.x Node.js stream - a stream we don't support as it isn't a stable release.

> <https://github.com/nodejs/modules/issues/446>
>
> I get this error: \`Error: Package exports for 'path/to/package' do not define a …valid '.' target\`
> 
> when, in the node v13.1 repl (where the flag should be required), I have:
> \`\`\`json
> "main": "index",
> "exports": {
> ".": {
> "default": "./node.js"
> }
> },
> \`\`\`
> I would have expected "exports" to have no effect prior to v13.2 when no modules flag is provided. It throws for me on v13.0 and v13.1, although not on v12.
> 
> This seems like a pretty serious back compat issue.

---

<div class="post-metadata">

**Author:** ![Supergiovane](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/supergiovane/32/9716_2.png) [@Supergiovane](https://discourse.nodered.org/u/Supergiovane)\
**Post date:** [15 October 2020 15:34 UTC](https://discourse.nodered.org/t/node-red-1-2-0-wont-start/34304/5 "2020-10-15T15:34:28Z")

</div>

Thank you. I'll update to 14 this night.  
Many 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:** [15 October 2020 16:19 UTC](https://discourse.nodered.org/t/node-red-1-2-0-wont-start/34304/6 "2020-10-15T16:19:25Z")

</div>

Once you update nodejs you will have to re-install node-red and go to your .node-red folder and run  
`npm rebuild`

---

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [16 October 2020 05:23 UTC](https://discourse.nodered.org/t/node-red-1-2-0-wont-start/34304/7 "2020-10-16T05:23:24Z")

</div>

Those steps are always required right? For any update of node.js outside of the official script. Suspect so... time to update my notes!

---

<div class="post-metadata">

**Author:** ![Supergiovane](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/supergiovane/32/9716_2.png) [@Supergiovane](https://discourse.nodered.org/u/Supergiovane)\
**Post date:** [16 October 2020 07:09 UTC](https://discourse.nodered.org/t/node-red-1-2-0-wont-start/34304/8 "2020-10-16T07:09:32Z")

</div>

Updating node to 14 worked.

---

<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:** [16 October 2020 07:39 UTC](https://discourse.nodered.org/t/node-red-1-2-0-wont-start/34304/9 "2020-10-16T07:39:33Z")

</div>

> [@Nodi.Rubrum](#):
>
> Those steps are always required right? For any update of node.js outside of the official script.

Yes.  
In fact whether you need the rebuild does depend on which nodes are installed, many nodes don't have a build step, but safest just to run it.  
The script does the rebuild automatically.

---

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [18 October 2020 12:36 UTC](https://discourse.nodered.org/t/node-red-1-2-0-wont-start/34304/10 "2020-10-18T12:36:33Z")

</div>

Cool, still learning!

---

<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:** [1 November 2020 12:36 UTC](https://discourse.nodered.org/t/node-red-1-2-0-wont-start/34304/11 "2020-11-01T12:36:40Z")

</div>

Closed on 1 November 2020 12:36 UTC

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