# UIbuilder installation failed

**URL:** <https://discourse.nodered.org/t/uibuilder-installation-failed/77072>\
**Category:** General\
**Tags:** uibuilder\
**Created:** [29 March 2023 22:59 UTC](https://discourse.nodered.org/t/uibuilder-installation-failed/77072 "2023-03-29T22:59:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![gNeandr](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gneandr/32/73947_2.png) [@gNeandr](https://discourse.nodered.org/u/gNeandr)\
**Post date:** [29 March 2023 22:59 UTC](https://discourse.nodered.org/t/uibuilder-installation-failed/77072/1 "2023-03-29T22:59:15Z")

</div>

Installing UIBuilder failed with from within nodered with Palette installation as well with "Manual installs and other versions" as posted on Github page.

The manual install stops with:

```auto
y:~/.node-red $ sudo npm install node-red-contrib-uibuilder
(##################) ⠴ reify:leveldown: http fetch GET 200 https://registry.npmjs.org/leveldown/-/leveldown-1.4.6.tgz 19047

```

(no difference with or without sudo)  
Any help?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [29 March 2023 23:51 UTC](https://discourse.nodered.org/t/uibuilder-installation-failed/77072/2 "2023-03-29T23:51:38Z")

</div>

I've just checked and I can't find any indication that any of uibuilder's dependencies would try to install LevelDown. Double-checked against several installations as well.

So as far as I can tell, something else is causing that.

I would suggest starting by finding out what installed package(s) are trying to use leveldown.

* * *

Oh, and you really shouldn't be installing Node-RED nodes with SUDO. That indicates a wrong installation.

* * *

And `reify`? What is that doing in there? Again, nothing uibuilder does involves it.

---

<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:** [30 March 2023 06:29 UTC](https://discourse.nodered.org/t/uibuilder-installation-failed/77072/3 "2023-03-30T06:29:34Z")

</div>

A bit more explanation of what might be going on. When you run npm install it first checks that everything else specified in `package.json` is as it should be, so it is probably that operation that is failing. You can check that just by running  
`npm install`

---

<div class="post-metadata">

**Author:** ![gNeandr](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gneandr/32/73947_2.png) [@gNeandr](https://discourse.nodered.org/u/gNeandr)\
**Post date:** [30 March 2023 12:29 UTC](https://discourse.nodered.org/t/uibuilder-installation-failed/77072/4 "2023-03-30T12:29:55Z")

</div>

And yes, npm install shows some errors:

```auto
$ npm install
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /home/pi/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/home/pi/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2023-03-30T10_15_56_431Z-debug-0.log

```

After some searching about possible fixes ... I'm going to restart the RPI  
Thanks for the moment 😉

---

<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:** [30 March 2023 12:41 UTC](https://discourse.nodered.org/t/uibuilder-installation-failed/77072/5 "2023-03-30T12:41:56Z")

</div>

> [@gNeandr](#):
>
> `npm ERR! path /home/pi/package.json`

Sorry, I should have said, you should be running the install in the .node-red folder. That is assuming you have a conventional install.

---

<div class="post-metadata">

**Author:** ![gNeandr](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gneandr/32/73947_2.png) [@gNeandr](https://discourse.nodered.org/u/gNeandr)\
**Post date:** [30 March 2023 13:04 UTC](https://discourse.nodered.org/t/uibuilder-installation-failed/77072/6 "2023-03-30T13:04:07Z")

</div>

Sure, I had noticed that too.  
But also because of all the different experiments I did, I thought it's safer to start from scratch.

Can you give a good tip for reinstalling node.js/npm/node-red.  
On [Running on Raspberry Pi : Node-RED](https://nodered.org/docs/getting-started/raspberrypi) is stated:

> ... includes the Raspberry Pi OS-packaged version of Node.js, but _does not_ include `npm`  
> Since npm is (usually) required, what would a subsequent secure installation of npm be like?

---

<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:** [30 March 2023 13:07 UTC](https://discourse.nodered.org/t/uibuilder-installation-failed/77072/7 "2023-03-30T13:07:46Z")

</div>

That refers to the packaged node red in the pi os repository. If you use the recommend script shown there then it should install everything you need, apart from build-essential, git and curl which you should install first as described there.

---

<div class="post-metadata">

**Author:** ![gNeandr](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gneandr/32/73947_2.png) [@gNeandr](https://discourse.nodered.org/u/gNeandr)\
**Post date:** [31 March 2023 10:46 UTC](https://discourse.nodered.org/t/uibuilder-installation-failed/77072/8 "2023-03-31T10:46:29Z")

</div>

Clean RPI/OS/NR/MQTT with on top UIBuilder installation and everything is OK 🥲  
Now NR/ui is running with the first nodes in production (on port 1880). Next will be a dev part to use UIBuilder with separate setup on port 2000 (as described with the other discussion).

---

<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:** [14 April 2023 10:47 UTC](https://discourse.nodered.org/t/uibuilder-installation-failed/77072/9 "2023-04-14T10:47:16Z")

</div>

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