# Pallete Update generates error (Raspberrymatic on RP4)

**URL:** <https://discourse.nodered.org/t/pallete-update-generates-error-raspberrymatic-on-rp4/60105>\
**Category:** General\
**Created:** [20 March 2022 12:31 UTC](https://discourse.nodered.org/t/pallete-update-generates-error-raspberrymatic-on-rp4/60105 "2022-03-20T12:31:32Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![renenl2](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@renenl2](https://discourse.nodered.org/u/renenl2)\
**Post date:** [20 March 2022 12:31 UTC](https://discourse.nodered.org/t/pallete-update-generates-error-raspberrymatic-on-rp4/60105/1 "2022-03-20T12:31:32Z")

</div>

Hi,  
I'm a bit new to this world so sorry if this is well known and simple.

I'm using Raspberrymatic on an RP4. The homeautomisation is done in node-red. At first everything worked well now on attempt to install further Palletes I get an error. The log looks like.

* * *

2022-03-20T12:06:09.128Z installieren : node-red-contrib-samsung-tv-control 1.3.15

2022-03-20T12:06:08.830Z npm install --no-package-lock --global-style --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production node-red-contrib-samsung-tv-control@1.3.15  
2022-03-20T12:06:12.209Z [err] npm  
2022-03-20T12:06:12.210Z [err] WARN registry Unexpected warning for [https://registry.npmjs.org/:](https://registry.npmjs.org/:) Miscellaneous Warning EINTEGRITY: sha512-K27/45WTa9DazO5s2sLDsL57To+czUAY/UjbFQ+9M5DFcwLXbwDfvyB/3P7jMySZBx7voWQMnbqzrgzlXAr+CA== integrity checksum failed when using sha512: wanted sha512-K27/45WTa9DazO5s2sLDsL57To+czUAY/UjbFQ+9M5DFcwLXbwDfvyB/3P7jMySZBx7voWQMnbqzrgzlXAr+CA== but got sha512-kZpFmhy781IeaTdwoE8P+HFmw3EfxceBut96xWdAjtfRY2N+RPb+6msl/J4PX7HzrPDyxfXWC5P7EFAh9s6DMQ==. (52736 bytes)  
2022-03-20T12:06:12.210Z [err] npm WARN registry Using stale data from [https://registry.npmjs.org/](https://registry.npmjs.org/) due to a request error during revalidation.  
2022-03-20T12:06:12.276Z [err] npm  
2022-03-20T12:06:12.276Z [err] ERR! code EINTEGRITY  
2022-03-20T12:06:12.276Z [err] npm ERR! errno  
2022-03-20T12:06:12.277Z [err] EINTEGRITY  
2022-03-20T12:06:12.295Z [err] npm ERR!  
2022-03-20T12:06:12.295Z [err] Invalid response body while trying to fetch htps://registry.npmjs.org/node-red-contrib-samsung-tv-control: sha512-K27/45WTa9DazO5s2sLDsL57To+czUAY/UjbFQ+9M5DFcwLXbwDfvyB/3P7jMySZBx7voWQMnbqzrgzlXAr+CA== integrity checksum failed when using sha512: wanted sha512-K27/45WTa9DazO5s2sLDsL57To+czUAY/UjbFQ+9M5DFcwLXbwDfvyB/3P7jMySZBx7voWQMnbqzrgzlXAr+CA== but got sha512-kZpFmhy781IeaTdwoE8P+HFmw3EfxceBut96xWdAjtfRY2N+RPb+6msl/J4PX7HzrPDyxfXWC5P7EFAh9s6DMQ==. (52736 bytes)  
2022-03-20T12:06:12.328Z [err]  
2022-03-20T12:06:12.329Z [err] npm ERR! A complete log of this run can be found in:  
2022-03-20T12:06:12.329Z [err] npm ERR!  
2022-03-20T12:06:12.331Z [err] /usr/local/addons/redmatic/var/npm-cache/\_logs/2022-03-20T12\_06\_12\_297Z-debug.log  
2022-03-20T12:06:12.400Z rc=1

(since as a new user I can add only 2 links I hat to ommit one t in the registry link, so that is not the source :-)) any on how knows what to do?  
Thanks René

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [20 March 2022 12:50 UTC](https://discourse.nodered.org/t/pallete-update-generates-error-raspberrymatic-on-rp4/60105/2 "2022-03-20T12:50:34Z")

</div>

> [@renenl2](#):
>
> EINTEGRITY

Did you try a search on the forum for that error code?

---

<div class="post-metadata">

**Author:** ![renenl2](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@renenl2](https://discourse.nodered.org/u/renenl2)\
**Post date:** [20 March 2022 13:04 UTC](https://discourse.nodered.org/t/pallete-update-generates-error-raspberrymatic-on-rp4/60105/3 "2022-03-20T13:04:38Z")

</div>

Thanks for your fast reply, yes I did try and didn't find it (yet) Similar topics but those solutions didn't work

---

<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:** [20 March 2022 14:04 UTC](https://discourse.nodered.org/t/pallete-update-generates-error-raspberrymatic-on-rp4/60105/4 "2022-03-20T14:04:06Z")

</div>

Change to your .node-red folder and run this command  
`npm cache clear --force`  
then try installing from the command line  
`npm install node-red-contrib-samsung-tv-control`  
If it still fails then delete the folder  
`.node-red/node_modules/node-red-contrib-samsung-tv-control`  
and try again. If still no joy then what to these commands show  
`node -v`  
`npm -v`

---

<div class="post-metadata">

**Author:** ![renenl2](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@renenl2](https://discourse.nodered.org/u/renenl2)\
**Post date:** [20 March 2022 15:25 UTC](https://discourse.nodered.org/t/pallete-update-generates-error-raspberrymatic-on-rp4/60105/5 "2022-03-20T15:25:27Z")

</div>

hello Colin,  
thanks for your extensiv describtion, which I had seen for some other problems like this before. As I'm using raspberrymatic, I'm not in the 100% standard Unix environment (sudo e.g. is not installed which will become important down the road I'm afraid).  
So the keep it short it didn't work.  
node has version 12.22.7  
npm has version 6.14.15 (I know far from current) update didn't work and as sudo istn't installed I couldn't update tru using sudo ☹  
any further help is gratefully acknowledged

René

---

<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:** [20 March 2022 15:31 UTC](https://discourse.nodered.org/t/pallete-update-generates-error-raspberrymatic-on-rp4/60105/6 "2022-03-20T15:31:17Z")

</div>

Is it specifically that node you can't install or is it any node? Try, for example, node-red-contrib-simple-gate. If not, were you previously able to install contrib nodes?

Did anything significant happen before the problem appeared? A power fail maybe?

Is the device working perfectly in all other respects?

---

<div class="post-metadata">

**Author:** ![renenl2](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@renenl2](https://discourse.nodered.org/u/renenl2)\
**Post date:** [20 March 2022 15:36 UTC](https://discourse.nodered.org/t/pallete-update-generates-error-raspberrymatic-on-rp4/60105/7 "2022-03-20T15:36:15Z")

</div>

Hi Colin,

the problem is general hence any other I've tried to install had the same issue.

I did remove some other nodes prior to the issue one did have problems, I needed to stop several times until it worked.

Node-red (or here called redmatic) works fins, and I can programm as needed with all the installed nodes, but as said nothing with possibility to include

René

---

<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:** [20 March 2022 15:45 UTC](https://discourse.nodered.org/t/pallete-update-generates-error-raspberrymatic-on-rp4/60105/8 "2022-03-20T15:45:07Z")

</div>

Have you _ever_ been able to install contrib nodes? You didn't make that clear.

> [@renenl2](#):
>
> I needed to stop several times until it worked

I don't understand what that means.

Try  
`npm -g cache clean --force`

---

<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:** [20 March 2022 15:55 UTC](https://discourse.nodered.org/t/pallete-update-generates-error-raspberrymatic-on-rp4/60105/9 "2022-03-20T15:55:03Z")

</div>

Another thought. Try making a complete copy of the .node-red directory (in case this goes horribly wrong), then delete the file package-lock.json in the original and run  
`npm install`  
If that doesn't show any errors then try installing the node again (using the npm command, which I hope is what you have been doing in these experiments). If it works then restart node-red.  
If the experiment is a disaster then you can restore the original .node-red and restart node-red.

---

<div class="post-metadata">

**Author:** ![renenl2](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@renenl2](https://discourse.nodered.org/u/renenl2)\
**Post date:** [20 March 2022 15:59 UTC](https://discourse.nodered.org/t/pallete-update-generates-error-raspberrymatic-on-rp4/60105/10 "2022-03-20T15:59:38Z")

</div>

So I did your first suggestion

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/7/a74e269bdf09f6feb96c26bb8d3dc47299eb4921.png)  
as you cann see errors.  
Yes I've been adding several nodes before. Wenn I wanted to delet one which wasn't doing what I had hoped for. I had to press the inactivate button on the user settings several times prior to truly being able to delete, despite the fact that the node wasn't in use. that is the only problem I occured ☹  
I'll try your solution from the second thread in a moment and will report..

---

<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:** [20 March 2022 16:08 UTC](https://discourse.nodered.org/t/pallete-update-generates-error-raspberrymatic-on-rp4/60105/11 "2022-03-20T16:08:56Z")

</div>

That isn't the command I suggested. You have forgotten the `clean`

---

<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:** [20 March 2022 16:14 UTC](https://discourse.nodered.org/t/pallete-update-generates-error-raspberrymatic-on-rp4/60105/12 "2022-03-20T16:14:09Z")

</div>

> [@renenl2](#):
>
> I had to press the inactivate button on the user settings

Is that a Redmatic thing? I don't remember seeing an inactivate button in the display where nodes are deleted. Or do you mean Disable. I wonder whether with multiple clickings there you have somehow messed up npm. I have another more drastic idea if the suggestions so far don't work.

---

<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:** [20 March 2022 16:20 UTC](https://discourse.nodered.org/t/pallete-update-generates-error-raspberrymatic-on-rp4/60105/13 "2022-03-20T16:20:41Z")

</div>

I meant to post what it looks like in a normal node-red  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/f/ff2cbdf8bc0f958ebc40e3f663bce5d5c4ba4d7d.png)

---

<div class="post-metadata">

**Author:** ![renenl2](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@renenl2](https://discourse.nodered.org/u/renenl2)\
**Post date:** [20 March 2022 16:31 UTC](https://discourse.nodered.org/t/pallete-update-generates-error-raspberrymatic-on-rp4/60105/14 "2022-03-20T16:31:07Z")

</div>

Hi Colin,  
after your reinstall it worked so I do hope it was a one time issue, maybe due to a power blidge or so. With regard to theinactivate button. I did have to translate from german to englisch for this thread so maybe Disable would have been correct.

Thank you very much for your help.

René

---

<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:** [20 March 2022 17:19 UTC](https://discourse.nodered.org/t/pallete-update-generates-error-raspberrymatic-on-rp4/60105/15 "2022-03-20T17:19:32Z")

</div>

> [@renenl2](#):
>
> after your reinstall it worked

For the future can you tell us exactly which suggestion fixed it please, as this has come up before.

---

<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:** [19 May 2022 17:19 UTC](https://discourse.nodered.org/t/pallete-update-generates-error-raspberrymatic-on-rp4/60105/16 "2022-05-19T17:19:49Z")

</div>

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