# Node-RED 0.18.5 released

**URL:** <https://discourse.nodered.org/t/node-red-0-18-5-released/34>\
**Category:** News\
**Created:** [10 May 2018 12:18 UTC](https://discourse.nodered.org/t/node-red-0-18-5-released/34 "2018-05-10T12:18:21Z")\
**Posts on this page:** 11\
**Page:** 1

<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:** [10 May 2018 12:18 UTC](https://discourse.nodered.org/t/node-red-0-18-5-released/34/1 "2018-05-10T12:18:21Z")

</div>

We have just published a new maintenance release - [https://github.com/node-red/node-red/releases/tag/0.18.5](https://github.com/node-red/node-red/releases/tag/0.18.5)

Some particular highlights:

- if you have Projects enabled, the welcome screen now lets you clone an existing project rather than force you to create a blank project before you’re able to clone one
- the Switch node has a new rule for checking the type of a message property
- the Function node now supports node.debug() and node.trace() for logging messages at those levels
- The MQTT Broker config node lets you set a Disconnect message - this is a message the client will send before it cleanly disconnects from the broker. This is distinct from the Will message that the broker sends if the client disconnects unexpectedly.

Plus lots of fixes and tweaks - thanks to all that reported issues and provided pull-requests along the way.

---

<div class="post-metadata">

**Author:** ![rbraggaar](https://avatars.discourse-cdn.com/v4/letter/r/6de8d8/32.png) [@rbraggaar](https://discourse.nodered.org/u/rbraggaar)\
**Post date:** [10 May 2018 19:48 UTC](https://discourse.nodered.org/t/node-red-0-18-5-released/34/2 "2018-05-10T19:48:56Z")

</div>

Just updated Node-Red. Two times actually, since my npm says it installed 0.18.5 but the Node-Red admin info still mentions the version being 0.18.4. Is this a bug or something on my side?

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [11 May 2018 06:56 UTC](https://discourse.nodered.org/t/node-red-0-18-5-released/34/3 "2018-05-11T06:56:02Z")

</div>

I’ve updated 4 Pi systems and 1 Windows one - all say 0.18.5 in Node-RED menu  
I did do a browser refresh after each install

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [11 May 2018 12:57 UTC](https://discourse.nodered.org/t/node-red-0-18-5-released/34/4 "2018-05-11T12:57:30Z")

</div>

> [@rbraggaar](#):
>
> Just updated Node-Red. Two times actually, since my npm says it installed 0.18.5 but the Node-Red admin info still mentions the version being 0.18.4. Is this a bug or something on my side?

How did you do the update and did you restart Node-RED?

---

<div class="post-metadata">

**Author:** ![rbraggaar](https://avatars.discourse-cdn.com/v4/letter/r/6de8d8/32.png) [@rbraggaar](https://discourse.nodered.org/u/rbraggaar)\
**Post date:** [12 May 2018 20:18 UTC](https://discourse.nodered.org/t/node-red-0-18-5-released/34/5 "2018-05-12T20:18:17Z")

</div>

I ran the following command, and after that I ran sudo pm2 restart node-red:

```
<username>@<ip>:~$ sudo npm install -g --unsafe-perm node-red
[sudo] password for <username>:
npm WARN deprecated bcrypt@1.0.3: bcrypt < v2.0.0 is susceptible to bcrypt wrap-around bug. Upgrade to bcrypt >= v2.0.0 for improved support for newer bcrypt hashes
npm WARN deprecated i18next-client@1.10.3: you can use npm install i18next from version 2.0.0
npm WARN deprecated mailparser@0.6.2: This project is unmaintained
npm WARN deprecated nodemailer@1.11.0: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
npm WARN deprecated mimelib@0.3.1: This project is unmaintained
npm WARN deprecated mailcomposer@2.1.0: This project is unmaintained
npm WARN deprecated buildmail@2.0.0: This project is unmaintained
/usr/local/bin/node-red -> /usr/local/lib/node_modules/node-red/red.js
/usr/local/bin/node-red-pi -> /usr/local/lib/node_modules/node-red/bin/node-red-pi
+ node-red@0.18.5
updated 3 packages in 5.941s
```

---

<div class="post-metadata">

**Author:** ![rbraggaar](https://avatars.discourse-cdn.com/v4/letter/r/6de8d8/32.png) [@rbraggaar](https://discourse.nodered.org/u/rbraggaar)\
**Post date:** [12 May 2018 20:20 UTC](https://discourse.nodered.org/t/node-red-0-18-5-released/34/6 "2018-05-12T20:20:34Z")

</div>

I’ve just discovered that running the plain node-red command will start up version 0.18.5, while the pm2 command will start the older 0.18.4 version.

Global Node-Red is 0.18.5.

```
npm list -g node-red
/usr/local/lib
└── node-red@0.18.5

```

Local Node-Red does not exist:

```
 npm list node-red
/home/user
└── (empty)

```

How can it still start 0.18.4 through pm2 I wonder…

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [12 May 2018 20:22 UTC](https://discourse.nodered.org/t/node-red-0-18-5-released/34/7 "2018-05-12T20:22:42Z")

</div>

Sounds like you’ve mixed up some versions. Perhaps you have a local install as well as a global one?

Check out the config for PM2 to see what it runs then get rid of it.

---

<div class="post-metadata">

**Author:** ![rbraggaar](https://avatars.discourse-cdn.com/v4/letter/r/6de8d8/32.png) [@rbraggaar](https://discourse.nodered.org/u/rbraggaar)\
**Post date:** [12 May 2018 20:52 UTC](https://discourse.nodered.org/t/node-red-0-18-5-released/34/8 "2018-05-12T20:52:48Z")

</div>

Turns out I had installs in `/usr/bin/node-red` and also `/usr/local/bin/node-red`.

PM2 was still looking at the old environment. Running `pm2 unstartup` got rid of the old startup service after which I could program in the new service.

Thanks!

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [12 May 2018 22:02 UTC](https://discourse.nodered.org/t/node-red-0-18-5-released/34/9 "2018-05-12T22:02:52Z")

</div>

If any PM2 user feels the urge to offer edits/updates to the docs please do so ! Thanks

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [12 May 2018 23:12 UTC](https://discourse.nodered.org/t/node-red-0-18-5-released/34/10 "2018-05-12T23:12:23Z")

</div>

I only use it on Windows I’m afraid. I use a custom install on my Pi.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [2 April 2019 06:43 UTC](https://discourse.nodered.org/t/node-red-0-18-5-released/34/12 "2019-04-02T06:43:12Z")

</div>


