# \[New user\] Error installing dashboard

**URL:** https://discourse.nodered.org/t/new-user-error-installing-dashboard/62629
**Category:** Dashboard
**Created:** [14 May 2022 19:47 UTC](https://discourse.nodered.org/t/new-user-error-installing-dashboard/62629 "2022-05-14T19:47:48Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Razz](https://avatars.discourse-cdn.com/v4/letter/r/f4b2a3/32.png) [@Razz](https://discourse.nodered.org/u/Razz)
#### Post date: [14 May 2022 19:47 UTC](https://discourse.nodered.org/t/new-user-error-installing-dashboard/62629/1 "2022-05-14T19:47:48Z")

</div>

Unable to download dashboard, error is as such..

```auto
15 May 03:37:05 - [info] Server now running at http://127.0.0.1:1880/
15 May 03:37:05 - [info] Starting flows
15 May 03:37:05 - [info] Started flows
15 May 03:37:54 - [info] Installing module: node-red-dashboard, version: 3.1.7
15 May 03:37:59 - [warn] Installation of module node-red-dashboard failed:
15 May 03:37:59 - [warn] ------------------------------------------
15 May 03:37:59 - [warn] npm ERR! code EINVALIDTAGNAME
npm ERR! Invalid tag name ""~"5.21.2": Tags may not have any characters that encodeURIComponent encodes.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2022-05-14T19_37_55_635Z-debug-0.log
15 May 03:37:59 - [warn] ------------------------------------------
Error: Install failed
    at /usr/lib/node_modules/node-red/node_modules/@node-red/registry/lib/installer.js:285:25
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
15 May 03:37:59 - [error] Error: Install failed

```

Any help would be appreciated.

---

<div class="post-metadata">

### Author: ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)
#### Post date: [14 May 2022 19:55 UTC](https://discourse.nodered.org/t/new-user-error-installing-dashboard/62629/2 "2022-05-14T19:55:09Z")

</div>

How did you attempt to install `node-red-dashboard`?  
Did you used the 'Manage Palette', use the cmd `npm install node-red-dashboard`, or something else?

---

<div class="post-metadata">

### Author: ![Razz](https://avatars.discourse-cdn.com/v4/letter/r/f4b2a3/32.png) [@Razz](https://discourse.nodered.org/u/Razz)
#### Post date: [14 May 2022 19:55 UTC](https://discourse.nodered.org/t/new-user-error-installing-dashboard/62629/3 "2022-05-14T19:55:51Z")

</div>

Yes I tried installing using both manage palette and through console as well! Both returned the same error.

---

<div class="post-metadata">

### Author: ![Razz](https://avatars.discourse-cdn.com/v4/letter/r/f4b2a3/32.png) [@Razz](https://discourse.nodered.org/u/Razz)
#### Post date: [14 May 2022 19:59 UTC](https://discourse.nodered.org/t/new-user-error-installing-dashboard/62629/4 "2022-05-14T19:59:11Z")

</div>

Sorry i would like to edit my post, when i type it in console it gives

```auto
pi@raspberrypi:~ $ npm install node-red-dashboard

up to date, audited 160 packages in 4s

found 0 vulnerabilities

```

What am i supposed to do upon seeing this^?

---

<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: [14 May 2022 20:23 UTC](https://discourse.nodered.org/t/new-user-error-installing-dashboard/62629/6 "2022-05-14T20:23:11Z")

</div>

> [@Razz](#):
>
> `pi@raspberrypi:~ $ npm install node-red-dashboard`

You did not run this in the right directory - you should be in the `.node-red` directory.

But you will hit the same error when you try.

What version of Node-RED are you using? There was a bug in an 2.something release that caused the issue you are hitting.

You need to edit the file `~/.node-red/package.json`, look in the dependencies section for an entry like `"\"~\"5.21.2"`. Edit it to get rid of the extra quotes: `"~5.21.2"`

You should find the installs work again.

If not, please share the contents of `package.json` so we can see if any further fixes are needed.

---

<div class="post-metadata">

### Author: ![Razz](https://avatars.discourse-cdn.com/v4/letter/r/f4b2a3/32.png) [@Razz](https://discourse.nodered.org/u/Razz)
#### Post date: [14 May 2022 20:53 UTC](https://discourse.nodered.org/t/new-user-error-installing-dashboard/62629/7 "2022-05-14T20:53:06Z")

</div>

Dear knolleary,

The version of Node-Red I am using is v2.2.2, hopefully it isn't the version with a bug.

---

<div class="post-metadata">

### Author: ![Razz](https://avatars.discourse-cdn.com/v4/letter/r/f4b2a3/32.png) [@Razz](https://discourse.nodered.org/u/Razz)
#### Post date: [14 May 2022 21:53 UTC](https://discourse.nodered.org/t/new-user-error-installing-dashboard/62629/8 "2022-05-14T21:53:25Z")

</div>

I have also tried editing this

> [@knolleary](#):
>
> ~/.node-red/package.json

but my results were

```auto
pi@raspberrypi:~ $ ~/.node-red/package.json
bash: /home/pi/.node-red/package.json: Permission denied

```

---

<div class="post-metadata">

### Author: ![Razz](https://avatars.discourse-cdn.com/v4/letter/r/f4b2a3/32.png) [@Razz](https://discourse.nodered.org/u/Razz)
#### Post date: [14 May 2022 22:06 UTC](https://discourse.nodered.org/t/new-user-error-installing-dashboard/62629/9 "2022-05-14T22:06:14Z")

</div>

I have since tried installing the dashboard from the node-red directory, and it can be confirmed now that the error returned are the same.

```auto
pi@raspberrypi:~/.node-red $ npm i node-red-dashboard
npm ERR! code EINVALIDTAGNAME
npm ERR! Invalid tag name ""~"5.21.2": Tags may not have any characters that encodeURIComponent encodes.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2022-05-14T22_04_45_749Z-debug-0.log

```

---

<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: [14 May 2022 22:18 UTC](https://discourse.nodered.org/t/new-user-error-installing-dashboard/62629/10 "2022-05-14T22:18:43Z")

</div>

> [@Razz](#):
>
> but my results were
> 
> ```auto
> pi@raspberrypi:~ $ ~/.node-red/package.json
> bash: /home/pi/.node-red/package.json: Permission denied
> 
> ```

That isn't editing it... You have tried to run it.

You need to open the file in a text editor to make changes.

---

<div class="post-metadata">

### Author: ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)
#### Post date: [15 May 2022 01:28 UTC](https://discourse.nodered.org/t/new-user-error-installing-dashboard/62629/11 "2022-05-15T01:28:32Z")

</div>

I would strongly recommend familiarising yourself with at least some basic command line stuff, otherwise you could end up trashing your system.

[https://ubuntu.com/tutorials/command-line-for-beginners#1-overview](https://ubuntu.com/tutorials/command-line-for-beginners#1-overview)  
[https://www.circuitbasics.com/how-to-edit-text-files-on-a-raspberry-pi/](https://www.circuitbasics.com/how-to-edit-text-files-on-a-raspberry-pi/)

---

<div class="post-metadata">

### Author: ![Razz](https://avatars.discourse-cdn.com/v4/letter/r/f4b2a3/32.png) [@Razz](https://discourse.nodered.org/u/Razz)
#### Post date: [15 May 2022 04:15 UTC](https://discourse.nodered.org/t/new-user-error-installing-dashboard/62629/12 "2022-05-15T04:15:59Z")

</div>

Terribly sorry making a mess, have edited it and it works now. Many thanks!

---

<div class="post-metadata">

### Author: ![Razz](https://avatars.discourse-cdn.com/v4/letter/r/f4b2a3/32.png) [@Razz](https://discourse.nodered.org/u/Razz)
#### Post date: [15 May 2022 04:16 UTC](https://discourse.nodered.org/t/new-user-error-installing-dashboard/62629/13 "2022-05-15T04:16:14Z")

</div>

Yes would definitely give it a good read, thank you for sharing.

---

<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: [29 May 2022 04:16 UTC](https://discourse.nodered.org/t/new-user-error-installing-dashboard/62629/14 "2022-05-29T04:16:52Z")

</div>

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