Need help with Uni work


Has anyone ever done this, and can guide me on how to do it please

Hi,

Sorry, we aren't here to do you university work for you. If there are particular parts where you are stuck, I'm sure we can help answer questions. But we aren't going to do the whole thing for you.

6 Likes

Thats fine, i should have been more specific. Can i first have help on how to download node red into my computer

Ive installed it but now i dont know how to run it from here on powershell

How did you install Node-RED? What command did you run?

npm install -g --unsafe-perm node-red

thats the command i used to install it

Since the uni gave you this task, specifically to use Node-RED, they shall also provide you with information how & where to install it. You need to have the adequate access rights to your computer and it seems, from the log, that something there is missing. If it is a computer that has been provided by the uni, I suggest you contact the IT responsibles before anything goes completely wrong

1 Like

After installing node-red, close your terminal, open a regular user cmd terminal (NON admin, not powershell) and enter node-red

1 Like

The assignment starts with the sentence "in weeks 7 and 8 you installed and learned...”.
So you already learned how to install Node-RED in the class during those two weeks?
If you forgot how you installed it last week, it might be worth to read through your notes again...

3 Likes

in fairness Bart, it looks like that week 7 work was done on a "Pi" and the op is now installing on windows.

I am sure there was an initiative to create a simple windows installer for Node-RED. I think @dceejay reviewed it (maybe?)?

1 Like

Ah ok, indeed that makes sense. Yes then the installation procedure is different and can cause confusion for beginners.
Good luck then with your first steps in the Node-RED world!

1 Like

I think there was "talk" about such a thing. I don't believe any of us actually took it anywhere.

In any case, it wouldn't have helped here because the Node-RED installation is not the problem, the running of a PowerShell script is the problem. Also, some learning is required by the OP to use PowerShell correctly.

If the device is a personal one, using the link helpfully provided by Microsoft will take you to the instructions on how to change the Execution Policy for PowerShell. If it is a Uni device then @krambriw is correct that the Uni's IT department will need to be contacted.

You could also try running Node-RED from a command prompt instead of PowerShell.

1 Like

The error message in PowerShell gives the hint to look at execution policies rights. I found that on modern Windows 10/11 systems, I have to set the permissions right with this PowerShell command:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

This is something that's missing from the installation instructions in Node-RED's documentation.

Just use cmd

What I think is the interesting takeaway from this post is that it indicates that some universities (at least one) has started to use Node-RED in the education programs. That's cool I think

2 Likes

I think we've seen this before. A sudden influx of new user questions after the start of term.

What would be really interesting is to get a list of Uni's that are using it.

Well, that's not quite right: Here's the project - pending review/approval.

I knew I'd seen something :+1:

Ah, interesting. Not quite as comprehensive as Dave's script as it doesn't include Node.js as far as I can see. Also needs updating to the latest version of course. Ideally it would detect and install the latest version and have options for installing different versions.

Would also be useful to have a local install option which is really important for people working on Windows machines that may be managed and so will not have access to admin rights or for people needing multiple versions of node-red in parallel (for testing).

Sorry, not criticizing by the way, a nice start and more than anyone else has done. :grinning:

I'm not sure it's that easy. :slight_smile:
Reviewers shall ensure to review contributions thoroughly before giving feedback - always appreciated! Most "facts" you state in your posting are wrong though, giving false impression to other readers.
Sorry, not criticizing by the way, a nice start and more than anyone else has done! :smiley:

I AM sure - it really isn't that easy! Took Dave a long time to perfect his script and that "only" uses BASH. :sunglasses:

We are way off topic here though and not the place to review the Windows installer.

1 Like