# Error install dashboard

**URL:** <https://discourse.nodered.org/t/error-install-dashboard/66172>\
**Category:** Dashboard\
**Created:** [8 August 2022 10:45 UTC](https://discourse.nodered.org/t/error-install-dashboard/66172 "2022-08-08T10:45:25Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![gideon](https://avatars.discourse-cdn.com/v4/letter/g/7ba0ec/32.png) [@gideon](https://discourse.nodered.org/u/gideon)\
**Post date:** [8 August 2022 10:45 UTC](https://discourse.nodered.org/t/error-install-dashboard/66172/1 "2022-08-08T10:45:25Z")

</div>

Hi all  
I am trying to install dashboard from Node Red on raspberry pi 4  
and I get the message  
gideon@raspberrypi:~ $ npm i node-red-dashboard  
npm ERR! code FETCH\_ERROR  
npm ERR! errno FETCH\_ERROR  
npm ERR! invalid json response body at [https://registry.npmjs.org/engine.io](https://urldefense.proofpoint.com/v2/url?u=https-3A__registry.npmjs.org_engine.io&d=DwQFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LMlKsGD_ztm2PXa8a7kKxw&m=DsCNVriTCcLqwSvMhkx1CnI0feAbC3el-1KtMHTr7CQ&s=c4G2EwhjxFV6ZxV_yze1lpGsPX83GbNfz7aEyHTqi4E&e=) reason: Unexpected end of JSON input

npm ERR! A complete log of this run can be found in:  
npm ERR! /home/gideon/.npm/\_logs/2022-08-08T10\_15\_46\_467Z-debug.log

any one can help me?

---

<div class="post-metadata">

**Author:** ![Josh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/josh/32/62208_2.png) [@Josh](https://discourse.nodered.org/u/Josh)\
**Post date:** [8 August 2022 11:34 UTC](https://discourse.nodered.org/t/error-install-dashboard/66172/2 "2022-08-08T11:34:51Z")

</div>

Hi can you consider updating the npm and try?

---

<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:** [8 August 2022 12:54 UTC](https://discourse.nodered.org/t/error-install-dashboard/66172/3 "2022-08-08T12:54:21Z")

</div>

How did you install node red? Did you use the recommended script in the node red docs?

---

<div class="post-metadata">

**Author:** ![gideon](https://avatars.discourse-cdn.com/v4/letter/g/7ba0ec/32.png) [@gideon](https://discourse.nodered.org/u/gideon)\
**Post date:** [8 August 2022 13:14 UTC](https://discourse.nodered.org/t/error-install-dashboard/66172/4 "2022-08-08T13:14:18Z")

</div>

didn't help

---

<div class="post-metadata">

**Author:** ![gideon](https://avatars.discourse-cdn.com/v4/letter/g/7ba0ec/32.png) [@gideon](https://discourse.nodered.org/u/gideon)\
**Post date:** [8 August 2022 13:16 UTC](https://discourse.nodered.org/t/error-install-dashboard/66172/5 "2022-08-08T13:16:08Z")

</div>

witch script?  
I try to install the dashboard from the NR and from shell and it is the same

---

<div class="post-metadata">

**Author:** ![Josh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/josh/32/62208_2.png) [@Josh](https://discourse.nodered.org/u/Josh)\
**Post date:** [8 August 2022 14:33 UTC](https://discourse.nodered.org/t/error-install-dashboard/66172/6 "2022-08-08T14:33:41Z")

</div>

Please check if this could be of any help -- [https://discourse.nodered.org/t/problem-installing-node-red-dashboard/26192](https://discourse.nodered.org/t/problem-installing-node-red-dashboard/26192)

---

<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:** [8 August 2022 16:09 UTC](https://discourse.nodered.org/t/error-install-dashboard/66172/7 "2022-08-08T16:09:22Z")

</div>

> [@gideon](#):
>
> witch script

Google for  
Install node red pi  
And go to the one on [nodered.org](http://nodered.org)

---

<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:** [8 August 2022 16:31 UTC](https://discourse.nodered.org/t/error-install-dashboard/66172/8 "2022-08-08T16:31:17Z")

</div>

From the error you posted. a) you aren’t in the user node-red directory. Usually ~/.node-red. b) it seems to be failing to get the package from the npm site. Is your internet connection stable ? Not via a proxy etc ?

---

<div class="post-metadata">

**Author:** ![gideon](https://avatars.discourse-cdn.com/v4/letter/g/7ba0ec/32.png) [@gideon](https://discourse.nodered.org/u/gideon)\
**Post date:** [10 August 2022 11:16 UTC](https://discourse.nodered.org/t/error-install-dashboard/66172/9 "2022-08-10T11:16:17Z")

</div>

Thanks  
the internet connection is stable but weak.  
I try to install from the NR \> manage \> palette so I think the directory is ok

I try this to  
ideon@raspberrypi:/usr/lib $ npm install node-red-dashboard  
npm WARN registry Unexpected warning for [https://registry.npmjs.org/](https://urldefense.proofpoint.com/v2/url?u=https-3A__registry.npmjs.org_&d=DwQFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LMlKsGD_ztm2PXa8a7kKxw&m=qtGWwbj1Zk7x8XHNrPQ2glwZqrZvS4-MC2noZSPHPyo&s=Wdq8H4qSpzMmWBMqkGHNvB-_VWLtAXZfpUnS64jxlQM&e=): Miscellaneous Warning EAI\_AGAIN: request to [https://registry.npmjs.org/node-red-dashboard](https://urldefense.proofpoint.com/v2/url?u=https-3A__registry.npmjs.org_node-2Dred-2Ddashboard&d=DwQFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LMlKsGD_ztm2PXa8a7kKxw&m=qtGWwbj1Zk7x8XHNrPQ2glwZqrZvS4-MC2noZSPHPyo&s=TaALlPIt2Odov-UtN3enrYMdMYwNiVM9lHkLeSW63tY&e=) failed, reason: getaddrinfo EAI\_AGAIN [registry.npmjs.org](https://urldefense.proofpoint.com/v2/url?u=http-3A__registry.npmjs.org&d=DwQFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LMlKsGD_ztm2PXa8a7kKxw&m=qtGWwbj1Zk7x8XHNrPQ2glwZqrZvS4-MC2noZSPHPyo&s=63yS9w6W0i0Ks-7wu00nd_XbkU6zZ-mDBqSfJePNQP4&e=)  
npm WARN registry Using stale data from [https://registry.npmjs.org/](https://urldefense.proofpoint.com/v2/url?u=https-3A__registry.npmjs.org_&d=DwQFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LMlKsGD_ztm2PXa8a7kKxw&m=qtGWwbj1Zk7x8XHNrPQ2glwZqrZvS4-MC2noZSPHPyo&s=Wdq8H4qSpzMmWBMqkGHNvB-_VWLtAXZfpUnS64jxlQM&e=) due to a request error during revalidation.  
npm ERR! code FETCH\_ERROR  
npm ERR! errno FETCH\_ERROR  
npm ERR! invalid json response body at [https://registry.npmjs.org/engine.io](https://urldefense.proofpoint.com/v2/url?u=https-3A__registry.npmjs.org_engine.io&d=DwQFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LMlKsGD_ztm2PXa8a7kKxw&m=qtGWwbj1Zk7x8XHNrPQ2glwZqrZvS4-MC2noZSPHPyo&s=rIXm9DGXtsyG2ASzgg6vqKnb7D_ceePn4Tq72bcD-bI&e=) reason: Unexpected end of JSON input

npm ERR! A complete log of this run can be found in:  
npm ERR! /home/gideon/.npm/\_logs/2022-08-10T11\_34\_26\_107Z-debug.log  
gideon@raspberrypi:/usr/lib $

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [10 August 2022 11:58 UTC](https://discourse.nodered.org/t/error-install-dashboard/66172/10 "2022-08-10T11:58:31Z")

</div>

You have shown us  
`gideon@raspberrypi:~ $ npm i node-red-dashboard`  
and  
`gideon@raspberrypi:/usr/lib $ npm install node-red-dashboard`

Neither of those are correct, it should be

```auto
cd ~/.node-red
npm install node-red-dashboard

```

But that doesn't explain EAI\_AGAIN or FETCH\_ERROR

---

<div class="post-metadata">

**Author:** ![gideon](https://avatars.discourse-cdn.com/v4/letter/g/7ba0ec/32.png) [@gideon](https://discourse.nodered.org/u/gideon)\
**Post date:** [10 August 2022 12:16 UTC](https://discourse.nodered.org/t/error-install-dashboard/66172/11 "2022-08-10T12:16:29Z")

</div>

thanks that the err I get now

gideon@raspberrypi:~ $ cd ~/.node-red  
npm install node-red-dashboard  
npm ERR! code FETCH\_ERROR  
npm ERR! errno FETCH\_ERROR  
npm ERR! invalid json response body at [https://registry.npmjs.org/engine.io](https://registry.npmjs.org/engine.io) reason: Unexpected end of JSON input

npm ERR! A complete log of this run can be found in:  
npm ERR! /home/gideon/.npm/\_logs/2022-08-10T12\_15\_15\_104Z-debug.log  
gideon@raspberrypi:~/.node-red $

---

<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:** [10 August 2022 13:20 UTC](https://discourse.nodered.org/t/error-install-dashboard/66172/12 "2022-08-10T13:20:36Z")

</div>

If you do a google search on `npm ERR! code FETCH_ERROR` you will find that this is generally happens when your network is not stable and cannot connect to the NPM servers properly.  
Here is a website with directions on what to do to fix the issue:

> **[Npm Err Invalid Json Response Body Unexpected End of Json Input](https://letscodepare.com/blog/npm-err-invalid-json-response-body-unexpected-end-of-json-input)**
>
> How to fix NPM ERR Invalid Response Body with unexpected json input when doing NPM Install.

---

<div class="post-metadata">

**Author:** ![gideon](https://avatars.discourse-cdn.com/v4/letter/g/7ba0ec/32.png) [@gideon](https://discourse.nodered.org/u/gideon)\
**Post date:** [11 August 2022 11:08 UTC](https://discourse.nodered.org/t/error-install-dashboard/66172/13 "2022-08-11T11:08:55Z")

</div>

hi  
thanksssssssssssssss  
It solved the error by running the  
`npm cache clean --force`  
And after that I installed the dashboard.  
Thanks .....

---

<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:** [25 August 2022 11:09 UTC](https://discourse.nodered.org/t/error-install-dashboard/66172/14 "2022-08-25T11:09:45Z")

</div>

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