# 🎉 Node-RED 1.2.2 released

**URL:** <https://discourse.nodered.org/t/node-red-1-2-2-released/34528>\
**Category:** News\
**Created:** [19 October 2020 23:13 UTC](https://discourse.nodered.org/t/node-red-1-2-2-released/34528 "2020-10-19T23:13:02Z")\
**Posts on this page:** 20\
**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:** [19 October 2020 23:13 UTC](https://discourse.nodered.org/t/node-red-1-2-2-released/34528/1 "2020-10-19T23:13:03Z")

</div>

We've published Node-RED 1.2.2.

This fixes the reported issue with the 'Restart Flows' deploy option.

It also improves the 'recovered nodes' handling to cover more scenarios where a node's `z` property is invalid.

> **[Release 1.2.2: Maintenance Release · node-red/node-red](https://github.com/node-red/node-red/releases/tag/1.2.2)**
>
> Editor
> 
> Prevent node z property getting set to 0 or ""
> Only apply z-recovery logic to flow nodes
> Fix api call to reload flows Fixes #2726
> Remove bad z property from import config nodes

---

<div class="post-metadata">

**Author:** ![mspacca](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mspacca/32/30688_2.png) [@mspacca](https://discourse.nodered.org/u/mspacca)\
**Post date:** [21 October 2020 06:19 UTC](https://discourse.nodered.org/t/node-red-1-2-2-released/34528/2 "2020-10-21T06:19:44Z")

</div>

Hi ,  
i have problem to install palette, first palette (node-red-dashboard 2.23.4) install , but from second i have problem (node-red-contrib-s7 2.2.1).

This is my log:  
Thanks

```auto
-----------------------------------------------------------
2020-10-21T06:08:47.167Z Install : node-red-dashboard 2.23.4

2020-10-21T06:08:47.586Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix="~" --production node-red-dashboard@2.23.4
2020-10-21T06:09:03.369Z [out] 
2020-10-21T06:09:03.369Z [out] added 84 packages in 16s
2020-10-21T06:09:03.378Z rc=0

-----------------------------------------------------------
2020-10-21T06:09:12.957Z Install : node-red-contrib-s7 2.2.1

2020-10-21T06:09:13.374Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix="~" --production node-red-contrib-s7@2.2.1
2020-10-21T06:09:13.800Z [err] npm
2020-10-21T06:09:13.801Z [err]  
2020-10-21T06:09:13.801Z [err] ERR!
2020-10-21T06:09:13.801Z [err]  
2020-10-21T06:09:13.801Z [err] code
2020-10-21T06:09:13.802Z [err] EINVALIDTAGNAME
2020-10-21T06:09:13.802Z [err] npm
2020-10-21T06:09:13.802Z [err]  
2020-10-21T06:09:13.802Z [err] ERR!
2020-10-21T06:09:13.802Z [err] Invalid tag name ""~"2.23.4": Tags may not have any characters that encodeURIComponent encodes.
2020-10-21T06:09:13.851Z [err] 
2020-10-21T06:09:13.852Z [err] npm
2020-10-21T06:09:13.852Z [err]  
2020-10-21T06:09:13.852Z [err] ERR!
2020-10-21T06:09:13.852Z [err] A complete log of this run can be found in:
2020-10-21T06:09:13.852Z [err] npm
2020-10-21T06:09:13.852Z [err]  
2020-10-21T06:09:13.853Z [err] ERR!
2020-10-21T06:09:13.853Z [err] /mnt/dietpi_userdata/node-red/.npm/_logs/2020-10-21T06_09_13_803Z-debug.log
2020-10-21T06:09:13.857Z rc=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:** [21 October 2020 06:33 UTC](https://discourse.nodered.org/t/node-red-1-2-2-released/34528/3 "2020-10-21T06:33:58Z")

</div>

Hi @mspacca, Welcome to the forum. That is an odd error. What version of node.js and npm are you using? Run `node -v` and `npm -v` to find out.

---

<div class="post-metadata">

**Author:** ![mspacca](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mspacca/32/30688_2.png) [@mspacca](https://discourse.nodered.org/u/mspacca)\
**Post date:** [21 October 2020 07:50 UTC](https://discourse.nodered.org/t/node-red-1-2-2-released/34528/4 "2020-10-21T07:50:54Z")

</div>

Hi, thanks.

Node v15.0.0  
Npm v7.0.2

---

<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:** [21 October 2020 08:04 UTC](https://discourse.nodered.org/t/node-red-1-2-2-released/34528/5 "2020-10-21T08:04:13Z")

</div>

We have not tested Node-RED with Node 15 - and in this case, npm 7, both of which were only released a few days ago. It looks like some change in npm 7 has broken this.

We recommend using Node-RED with an LTS release of node - either 12 or 14 - and the version of npm that comes with them.

---

<div class="post-metadata">

**Author:** ![mspacca](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mspacca/32/30688_2.png) [@mspacca](https://discourse.nodered.org/u/mspacca)\
**Post date:** [21 October 2020 08:08 UTC](https://discourse.nodered.org/t/node-red-1-2-2-released/34528/6 "2020-10-21T08:08:09Z")

</div>

Ok,  
i will try to downgrade npm and node, i will search command in web...

Thanks a lot, i will send you feedback 👍

---

<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:** [21 October 2020 08:10 UTC](https://discourse.nodered.org/t/node-red-1-2-2-released/34528/7 "2020-10-21T08:10:56Z")

</div>

If you want help with that tell us what OS you are running on and how you installed nodejs and node-red. After you downgrade you must re-install node-red itself and also go to your .node-red folder and run  
`npm rebuild`

---

<div class="post-metadata">

**Author:** ![AsHex\_66](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ashex_66/32/31151_2.png) [@AsHex\_66](https://discourse.nodered.org/u/AsHex_66)\
**Post date:** [21 October 2020 08:16 UTC](https://discourse.nodered.org/t/node-red-1-2-2-released/34528/8 "2020-10-21T08:16:52Z")

</div>

@knolleary @dceejay

Just a big thumb's up to you and the team, great work.  
Don't know if this you full time job or not, but you all appear to be up 24-7.

Keep it going 😉

I will try to do my bit, but have to share this with my 'real' job

---

<div class="post-metadata">

**Author:** ![mspacca](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mspacca/32/30688_2.png) [@mspacca](https://discourse.nodered.org/u/mspacca)\
**Post date:** [21 October 2020 08:17 UTC](https://discourse.nodered.org/t/node-red-1-2-2-released/34528/9 "2020-10-21T08:17:45Z")

</div>

I have installed Dietpi October 2020 (version 6.33), and installed node , npm and node-red with menu software .

---

<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:** [21 October 2020 08:22 UTC](https://discourse.nodered.org/t/node-red-1-2-2-released/34528/10 "2020-10-21T08:22:01Z")

</div>

> [@mspacca](#):
>
> I have installed Dietpi

Sorry, don't know anything about Dietpi. I am not sure many here do.

---

<div class="post-metadata">

**Author:** ![mspacca](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mspacca/32/30688_2.png) [@mspacca](https://discourse.nodered.org/u/mspacca)\
**Post date:** [21 October 2020 08:31 UTC](https://discourse.nodered.org/t/node-red-1-2-2-released/34528/11 "2020-10-21T08:31:05Z")

</div>

OK,  
downgraded to v12.19.0 and palette installation work fine..

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:** [21 October 2020 08:32 UTC](https://discourse.nodered.org/t/node-red-1-2-2-released/34528/12 "2020-10-21T08:32:23Z")

</div>

I'm now less certain this is an npm 7 issue.

I've just installed Node 15/npm 7 and run the exact same two npm install commands you shared from the log - and it has worked fine.

I'm not 100% sure where the node-red user directory is on a dietpi install - it isn't one we are involved with. Its normally `~/.node-red` - If you can check the log when node-red starts up it will tell you.

You could then try manually installing the `s7` node, by changing to that directory and running:

```auto
npm install node-red-contrib-s7

```

If that works, then restart Node-RED to load the new node.

If it fails with the same error as you shared originally, then try deleting the `package-lock.json` file in that directory and try again.

---

<div class="post-metadata">

**Author:** ![mspacca](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mspacca/32/30688_2.png) [@mspacca](https://discourse.nodered.org/u/mspacca)\
**Post date:** [21 October 2020 09:11 UTC](https://discourse.nodered.org/t/node-red-1-2-2-released/34528/13 "2020-10-21T09:11:35Z")

</div>

> [@mspacca](#):
>
> `/mnt/dietpi_userdata/node-red/`

This is the user directory in dietpi, i have tried launching here the command` npm install node-red-contrib-s7` but have same error.  
Deleting `package-lock.json` also not work .

---

<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:** [21 October 2020 10:04 UTC](https://discourse.nodered.org/t/node-red-1-2-2-released/34528/14 "2020-10-21T10:04:25Z")

</div>

can you share the latest error log from the manual command `npm i node-red-contrib-s7` in that directory

---

<div class="post-metadata">

**Author:** ![mspacca](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mspacca/32/30688_2.png) [@mspacca](https://discourse.nodered.org/u/mspacca)\
**Post date:** [21 October 2020 10:16 UTC](https://discourse.nodered.org/t/node-red-1-2-2-released/34528/15 "2020-10-21T10:16:37Z")

</div>

```auto
0 verbose cli [
0 verbose cli '/usr/local/bin/node',
0 verbose cli '/usr/local/bin/npm',
0 verbose cli 'install',
0 verbose cli '--no-audit',
0 verbose cli '--no-update-notifier',
0 verbose cli '--no-fund',
0 verbose cli '--save',
0 verbose cli '--save-prefix="~"',
0 verbose cli '--production',
0 verbose cli 'node-red-contrib-s7comm@1.1.6'
0 verbose cli ]
1 info using npm@7.0.2
2 info using node@v15.0.0
3 timing config:load:defaults Completed in 2ms
4 timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 0ms
5 timing config:load:builtin Completed in 0ms
6 timing config:load:cli Completed in 6ms
7 timing config:load:env Completed in 0ms
8 timing config:load:project Completed in 1ms
9 timing config:load:file:/mnt/dietpi_userdata/node-red/.npmrc Completed in 0ms
10 timing config:load:user Completed in 0ms
11 timing config:load:file:/usr/local/etc/npmrc Completed in 0ms
12 timing config:load:global Completed in 1ms
13 timing config:load:cafile Completed in 0ms
14 timing config:load:validate Completed in 0ms
15 timing config:load:setUserAgent Completed in 1ms
16 timing config:load:setEnvs Completed in 1ms
17 timing config:load Completed in 12ms
18 verbose npm-session 226fc5ea13089fb8
19 timing npm:load Completed in 21ms
20 timing arborist:ctor Completed in 1ms
21 timing arborist:ctor Completed in 0ms
22 timing idealTree:init Completed in 351ms
23 timing idealTree:userRequests Completed in 2ms
24 silly idealTree buildDeps
25 timing idealTree Completed in 355ms
26 timing command:install Completed in 360ms
27 verbose stack Error: Invalid tag name ""~"2.23.4": Tags may not have any characters that encodeURIComponent encodes.
27 verbose stack at invalidTagName (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:91:15)
27 verbose stack at fromRegistry (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:296:13)
27 verbose stack at Function.resolve (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:81:12)
27 verbose stack at Arborist.[nodeFromEdge] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:798:22)
27 verbose stack at Arborist.[buildDepStep] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:760:36)
27 verbose stack at Arborist.[buildDeps] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:618:31)
27 verbose stack at Arborist.buildIdealTree (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:202:29)
27 verbose stack at async Promise.all (index 1)
27 verbose stack at async Arborist.reify (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:121:5)
27 verbose stack at async install (/usr/local/lib/node_modules/npm/lib/install.js:40:5)
28 verbose cwd /mnt/dietpi_userdata/node-red
29 verbose Linux 4.19.0-12-amd64
30 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--no-audit" "--no-update-notifier" "--no-fund" "--save" "--save-prefix=\"~\"" "--production" "node-red-contrib-s7comm@1.1.6"
31 verbose node v15.0.0
32 verbose npm v7.0.2
33 error code EINVALIDTAGNAME
34 error Invalid tag name ""~"2.23.4": Tags may not have any characters that encodeURIComponent encodes.
35 verbose exit 1

```

I used `node-red-contrib-s7comm` but issue is the same with `node-red-contrib-s7` because this is already installed correctly with versione v12.19.0.

---

<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:** [21 October 2020 10:20 UTC](https://discourse.nodered.org/t/node-red-1-2-2-released/34528/16 "2020-10-21T10:20:01Z")

</div>

> [@mspacca](#):
>
> ```auto
> 30 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--no-audit" "--no-update-notifier" "--no-fund" "--save" "--save-prefix=\"~\"" "--production" "node-red-contrib-s7comm@1.1.6"
> 
> ```

Where is line 30 coming from ? are you using the UI to install or command line ?  
(and line 1 and 2 still indicate node 15 and npm 7....)

---

<div class="post-metadata">

**Author:** ![mspacca](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mspacca/32/30688_2.png) [@mspacca](https://discourse.nodered.org/u/mspacca)\
**Post date:** [21 October 2020 10:25 UTC](https://discourse.nodered.org/t/node-red-1-2-2-released/34528/17 "2020-10-21T10:25:48Z")

</div>

```auto
0 verbose cli [
0 verbose cli '/usr/local/bin/node',
0 verbose cli '/usr/local/bin/npm',
0 verbose cli 'i',
0 verbose cli 'node-red-contrib-s7comm'
0 verbose cli ]
1 info using npm@7.0.2
2 info using node@v15.0.0
3 timing config:load:defaults Completed in 2ms
4 timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 1ms
5 timing config:load:builtin Completed in 1ms
6 timing config:load:cli Completed in 1ms
7 timing config:load:env Completed in 0ms
8 timing config:load:file:/mnt/dietpi_userdata/node-red/.npmrc Completed in 0ms
9 timing config:load:project Completed in 1ms
10 timing config:load:file:/root/.npmrc Completed in 0ms
11 timing config:load:user Completed in 0ms
12 timing config:load:file:/usr/local/etc/npmrc Completed in 0ms
13 timing config:load:global Completed in 0ms
14 timing config:load:cafile Completed in 0ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:setUserAgent Completed in 0ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 7ms
19 verbose npm-session 4ba634e3b2363290
20 timing npm:load Completed in 19ms
21 timing arborist:ctor Completed in 1ms
22 timing arborist:ctor Completed in 1ms
23 timing idealTree:init Completed in 302ms
24 timing idealTree:userRequests Completed in 1ms
25 silly idealTree buildDeps
26 timing idealTree Completed in 305ms
27 timing command:install Completed in 310ms
28 verbose stack Error: Invalid tag name ""~"2.23.4": Tags may not have any characters that encodeURIComponent encodes.
28 verbose stack at invalidTagName (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:91:15)
28 verbose stack at fromRegistry (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:296:13)
28 verbose stack at Function.resolve (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:81:12)
28 verbose stack at Arborist.[nodeFromEdge] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:798:22)
28 verbose stack at Arborist.[buildDepStep] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:760:36)
28 verbose stack at Arborist.[buildDeps] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:618:31)
28 verbose stack at Arborist.buildIdealTree (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:202:29)
28 verbose stack at async Promise.all (index 1)
28 verbose stack at async Arborist.reify (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:121:5)
28 verbose stack at async install (/usr/local/lib/node_modules/npm/lib/install.js:40:5)
29 verbose cwd /mnt/dietpi_userdata/node-red
30 verbose Linux 4.19.0-12-amd64
31 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "node-red-contrib-s7comm"
32 verbose node v15.0.0
33 verbose npm v7.0.2
34 error code EINVALIDTAGNAME
35 error Invalid tag name ""~"2.23.4": Tags may not have any characters that encodeURIComponent encodes.
36 verbose exit 1

```

Sorry i wrong to copy log,

> [@dceejay](#):
>
> (and line 1 and 2 still indicate node 15 and npm 7....)

Yes i have reinstalled v15 and v7 to retry this issue... with version v12 work fine..

---

<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:** [21 October 2020 10:31 UTC](https://discourse.nodered.org/t/node-red-1-2-2-released/34528/18 "2020-10-21T10:31:27Z")

</div>

Hi @mspacca

this _is definitely_ due to a change made in npm 7.

What other modules have you got installed for node-red-dashboard?

For hotly debated reasons, they have chosen that npm 7 will now start to automatically install `peerDependencies` - where they were previously ignored. This is going to cause endless problems for modules in our ecosystem.

My theory is you have a module installed that lists `node-red-dashboard` as a peerDependency, but its version string is not valid. This is ignored by npm \<7, but now npm 7 will complain.

---

<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:** [21 October 2020 10:51 UTC](https://discourse.nodered.org/t/node-red-1-2-2-released/34528/19 "2020-10-21T10:51:53Z")

</div>

well the version string should be fine as the peer-dependency will want to be able to express greater than a certain level of peer etc... but yes - is broken as-is.

---

<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:** [21 October 2020 11:47 UTC](https://discourse.nodered.org/t/node-red-1-2-2-released/34528/20 "2020-10-21T11:47:15Z")

</div>

What is odd here is that the peer dep looks like the dashboard 2.23.4 which is very new to be a dependency of any other node... so it must be coming from either the generated local package.json or package-lock.json.

[Next page](https://discourse.nodered.org/t/node-red-1-2-2-released/34528.md?page=2)
