# Update buffer parser -\> fail

**URL:** <https://discourse.nodered.org/t/update-buffer-parser-fail/49896>\
**Category:** General\
**Created:** [19 August 2021 05:42 UTC](https://discourse.nodered.org/t/update-buffer-parser-fail/49896 "2021-08-19T05:42:58Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Becker](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@Becker](https://discourse.nodered.org/u/Becker)\
**Post date:** [19 August 2021 05:42 UTC](https://discourse.nodered.org/t/update-buffer-parser-fail/49896/1 "2021-08-19T05:42:58Z")

</div>

Hi,  
I´m using NR 2.0.5 with Node.JS 12.x  
today I wanted to update contrib-buffer-parser and contrib-modbus from palette, but an error always occurs:

```auto
> 2021-08-19T05:33:08.943Z Installieren : node-red-contrib-buffer-parser 3.1.7
> 2021-08-19T05:33:09.558Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-buffer-parser@3.1.7
> 2021-08-19T05:33:16.014Z [err] npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
> 2021-08-19T05:33:22.495Z [err] npm
> 2021-08-19T05:33:22.496Z [err] ERR! Error while executing:
> 2021-08-19T05:33:22.496Z [err] npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/anerdins/nibepi.git
> 2021-08-19T05:33:22.496Z [err] npm
> 2021-08-19T05:33:22.496Z [err] ERR! 
> 2021-08-19T05:33:22.496Z [err] npm
> 2021-08-19T05:33:22.496Z [err] ERR! git@github.com: Permission denied (publickey).
> 2021-08-19T05:33:22.496Z [err] npm ERR! fatal: Konnte nicht vom Remote-Repository lesen.
> 2021-08-19T05:33:22.497Z [err] npm ERR! 
> 2021-08-19T05:33:22.497Z [err] npm ERR!
> 2021-08-19T05:33:22.497Z [err] Bitte stellen Sie sicher, dass die korrekten Zugriffsberechtigungen bestehen
> 2021-08-19T05:33:22.497Z [err] npm ERR!
> 2021-08-19T05:33:22.497Z [err] und das Repository existiert.
> 2021-08-19T05:33:22.497Z [err] npm ERR!
> 2021-08-19T05:33:22.497Z [err]  
> 2021-08-19T05:33:22.497Z [err] npm ERR!
> 2021-08-19T05:33:22.497Z [err] exited with error code: 128
> 2021-08-19T05:33:22.528Z [err] 
> 2021-08-19T05:33:22.528Z [err] npm ERR! A complete log of this run can be found in:
> 2021-08-19T05:33:22.528Z [err] npm ERR!
> 2021-08-19T05:33:22.529Z [err] /home/pi/.npm/_logs/2021-08-19T05_33_22_510Z-debug.log
> 2021-08-19T05:33:22.551Z rc=1

```

I need Node.JS 12 for NibePi Node, it doesn´t work with Node.JS 14 or 16.

---

<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:** [19 August 2021 07:05 UTC](https://discourse.nodered.org/t/update-buffer-parser-fail/49896/2 "2021-08-19T07:05:13Z")

</div>

A quick search of `git@github.com: Permission denied (publickey).` reveals...

> GitHub isn't able to authenticate you. So, either you aren't setup with an SSH key, because you haven't set one up on your machine, or your key isn't associated with your GitHub account.
> 
> You can also use the HTTPS URL instead of the SSH/git URL to avoid having to deal with SSH keys. This is GitHub's recommended method.

The error is occurring due to `ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/anerdins/nibepi.git`

---

<div class="post-metadata">

**Author:** ![Becker](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@Becker](https://discourse.nodered.org/u/Becker)\
**Post date:** [19 August 2021 13:35 UTC](https://discourse.nodered.org/t/update-buffer-parser-fail/49896/3 "2021-08-19T13:35:15Z")

</div>

What does "NibePi Master" have to do with the update of the buffer parser? I do not understand sry.

I think I have to format my micro-SD Card 😟

---

<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:** [19 August 2021 13:50 UTC](https://discourse.nodered.org/t/update-buffer-parser-fail/49896/4 "2021-08-19T13:50:34Z")

</div>

It has nothing to do with it - it's because you chose to update buffer-perser.

You will find any npm node you attempt to update, this will happen.

The point is GitHub have changed the way you clone repos. This other node you mention has a dependency to a GitHub resource. It's failing to access it.

See here: [node-red-contrib-nibepi/package.json at f903f1a273e2995648a67daa9d5642671843c12d · anerdins/node-red-contrib-nibepi · GitHub](https://github.com/anerdins/node-red-contrib-nibepi/blob/f903f1a273e2995648a67daa9d5642671843c12d/package.json#L6)

To prove this point, try updating a different node, you will see the same problem.

So even if you reformat and start again you will get this problem when you attempt to install NibePi once more.

---

<div class="post-metadata">

**Author:** ![Becker](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@Becker](https://discourse.nodered.org/u/Becker)\
**Post date:** [19 August 2021 14:26 UTC](https://discourse.nodered.org/t/update-buffer-parser-fail/49896/5 "2021-08-19T14:26:24Z")

</div>

thank you, but how can I fix it / solve the problem ?

---

<div class="post-metadata">

**Author:** ![UnborN](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@UnborN](https://discourse.nodered.org/u/UnborN)\
**Post date:** [19 August 2021 15:13 UTC](https://discourse.nodered.org/t/update-buffer-parser-fail/49896/6 "2021-08-19T15:13:03Z")

</div>

> [@Becker](#):
>
> need Node.JS 12 for NibePi Node, it doesn´t work with Node.JS 14 or 16.

Hello ..

im guessing, because you were experimenting with newer versions of nodejs / npm  
at some point your `package-lock.json` got updated to a newer version.  
when you reverted back to nodejs 12 the lock file stayed with v2 causing that error message.

i dont know much about npm but if it was me i would take a chance \*\*  
and rename the `package-lock.json` to `package-lock.old` and  
run `npm install` from `.node-red` folder to re-install and recreate it with a correct version.

\*\* dont take my word for it. get a second opinion 😉

---

<div class="post-metadata">

**Author:** ![Becker](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@Becker](https://discourse.nodered.org/u/Becker)\
**Post date:** [20 August 2021 05:37 UTC](https://discourse.nodered.org/t/update-buffer-parser-fail/49896/7 "2021-08-20T05:37:45Z")

</div>

I formated my SD-Card, now I can do updates with NibePi installed.  
thanks anyway.  
I´ll not try Node.JS 14 again ☹

Mr. Anerdin doesn´t answere about Node.JS 14, so I have to stay at Node.JS 12.

---

<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:** [3 September 2021 05:38 UTC](https://discourse.nodered.org/t/update-buffer-parser-fail/49896/8 "2021-09-03T05:38:37Z")

</div>

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