Error when loading "Extended example using the IIFE client (external)"

Hi Folks,

I am new (noob) to node-red and trying out the uibuilder. I am also a noob to front end technologies.

I followed the steps under "A first-timers walkthrough" in this link ( UIBUILDER Documentation v7)

I am doing this step:
To improve this mostly blank page, re-open the node's settings again and change the Template drop-down to "Extended example using the IIFE client (external) ". Then click the "Load & Overwrite Files" button. You will get a warning that you should carefully read and if OK, click on the "OK, overwrite" button. Of course, if you don't want to overwrite things, click on the cancel button (which is the default).

However, i got this error:
[uibuilder:adminapi:POST:replaceTemplate] Replace template error. Failed to copy template from 'totallyinformation/uib-extended-template' to '\Users######.node-red\uibuilder\test'. url=test, cmd=replaceTemplate, ERR=could not find commit hash for HEAD [UibFs:replaceTemplate]. url=test. ext-extended-iifeundefined

I have installations as below:

Any help?

Thanks

Welcome to the forum.

Great! :wink:

Good place to start.

I just tried it on my device, and it worked OK.

I wonder if you maybe need a GitHub login to use it? I didn't think so, but maybe I haven't tested that.

Another test would be to use a command line, create a new folder and cd to it.

Then, use the following command: npm install totallyinformation/uib-extended-template. It should simply tell you that 1 package has been added.

Then, if you already have git installed and working, try git clone https://github.com/totallyinformation/uib-extended-template. You should get something like this:

If these work, then nothing local is blocking your access to the repo. If they don't work, please post the errors and we will see if we can see what is wrong.


Another thing to do is to run through some of the examples which you can access from the Node-RED import option.

Hi Julian,

Thank you for your reply.

After reading your post, I think I need to install Git on my local machine hence I went ahead to install Git. After installation of Git, it works!

Thank you very much!

Ah, well thanks for raising this since I wasn't aware that the degit tool actually needed git to be installed!

I can now add some instructions and an automatic check and warning into the next release of UIBUILDER. :smiley:

I've also raised as an upstream issue for degit since this is not mentioned in the documentation as far as I can see. In fact, degit should NOT need a local git installation, it is supposed to work without. Possibly I have not configured it correctly. Unfortunately, the machines I use all have git installed so I missed this.

Also noticing that degit has not been updated in a while so it might be time to change dependencies.