# I have problem with installing node-red pls can someone help me

**URL:** https://discourse.nodered.org/t/i-have-problem-with-installing-node-red-pls-can-someone-help-me/74497
**Category:** General
**Created:** [31 January 2023 17:00 UTC](https://discourse.nodered.org/t/i-have-problem-with-installing-node-red-pls-can-someone-help-me/74497 "2023-01-31T17:00:44Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![kwa45](https://avatars.discourse-cdn.com/v4/letter/k/9dc877/32.png) [@kwa45](https://discourse.nodered.org/u/kwa45)
#### Post date: [31 January 2023 17:00 UTC](https://discourse.nodered.org/t/i-have-problem-with-installing-node-red-pls-can-someone-help-me/74497/1 "2023-01-31T17:00:44Z")

</div>

![node-red problem in cmd](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/a/2a26809dd84080b6fce87279dd6691812859aef8.png)

---

<div class="post-metadata">

### Author: ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)
#### Post date: [31 January 2023 17:13 UTC](https://discourse.nodered.org/t/i-have-problem-with-installing-node-red-pls-can-someone-help-me/74497/2 "2023-01-31T17:13:12Z")

</div>

Hi,

First of all, please don't double post.

Exhibit A:  
[https://discourse.nodered.org/t/i-have-problem-installing-node-red-im-quite-not-good-at-this-but-if-someone-could-help-me-i-would-be-grateful/74496](https://discourse.nodered.org/t/i-have-problem-installing-node-red-im-quite-not-good-at-this-but-if-someone-could-help-me-i-would-be-grateful/74496)

Your original post will get seen to, once a member of the community is free from commitments, and has time.

Now on to your issue:

I would start by not installing into global, if you plan on running this under your account.  
therefore remove `-g` and whilst your at it remove `--unsafe-perm` and run with an elevated command prompt.

---

<div class="post-metadata">

### Author: ![kwa45](https://avatars.discourse-cdn.com/v4/letter/k/9dc877/32.png) [@kwa45](https://discourse.nodered.org/u/kwa45)
#### Post date: [31 January 2023 20:56 UTC](https://discourse.nodered.org/t/i-have-problem-with-installing-node-red-pls-can-someone-help-me/74497/3 "2023-01-31T20:56:45Z")

</div>

i don't know ow to update through [glob-parent before 5.1.2 vulnerable to Regular Expression Denial of Service in enclosure regex · CVE-2020-28469 · GitHub Advisory Database · GitHub](https://github.com/advisories/GHSA-ww39-953v-wcq6)  
or im i thinking wrong?

 ![the problem](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/e/aedca2e624557ad1dbd266931019b28fa0891b24.png)

---

<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: [31 January 2023 21:16 UTC](https://discourse.nodered.org/t/i-have-problem-with-installing-node-red-pls-can-someone-help-me/74497/4 "2023-01-31T21:16:30Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/a/da472224da5ad72e00c589c088295110f1c6bc5a.png)

This was the issue - somehow your npm settings are wrong.

> [@marcus-j-davies](#):
>
> I would start by not installing into global, if you plan on running this under your account.  
> therefore remove `-g` and whilst your at it remove `--unsafe-perm` and run with an elevated command prompt.

Hi Marcus, to install node-red on Windows. You don't need and should not use an elevated command prompt. Indeed, best never to use one of those unless there is no alternative. I've just tried in order to make sure I was steering you right and node-red installed perfectly well globally without an elevated prompt.

Also, the standard way that most people install node red is indeed `npm install -g node-red --unsafe-perm`.

So those were not the issue I don't believe.

---

<div class="post-metadata">

### Author: ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)
#### Post date: [31 January 2023 21:22 UTC](https://discourse.nodered.org/t/i-have-problem-with-installing-node-red-pls-can-someone-help-me/74497/5 "2023-01-31T21:22:01Z")

</div>

I think it comes from my hate to install things globally - a little bias my end I think 😅  
But good to know on the elevated command

---

<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: [31 January 2023 21:24 UTC](https://discourse.nodered.org/t/i-have-problem-with-installing-node-red-pls-can-someone-help-me/74497/6 "2023-01-31T21:24:27Z")

</div>

> [@marcus-j-davies](#):
>
> I think it comes from my hate to install things globally - a little bias my end I think

Oh, no. I absolutely agree with that! It's just that is isn't how most people have been told to install it.

As you may know, I even wrote a helper module - alternate node-red installer to help do consistent local installs 😁

---

<div class="post-metadata">

### Author: ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)
#### Post date: [31 January 2023 21:27 UTC](https://discourse.nodered.org/t/i-have-problem-with-installing-node-red-pls-can-someone-help-me/74497/7 "2023-01-31T21:27:25Z")

</div>

> [@TotallyInformation](#):
>
> As you may know, I even wrote a helper module - alternate node-red installer to help do consistent local installs

Indeed I do 🕶

---

<div class="post-metadata">

### Author: ![kwa45](https://avatars.discourse-cdn.com/v4/letter/k/9dc877/32.png) [@kwa45](https://discourse.nodered.org/u/kwa45)
#### Post date: [31 January 2023 21:56 UTC](https://discourse.nodered.org/t/i-have-problem-with-installing-node-red-pls-can-someone-help-me/74497/8 "2023-01-31T21:56:21Z")

</div>

can you think of any solution to maybe solve or try?

---

<div class="post-metadata">

### Author: ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)
#### Post date: [31 January 2023 22:14 UTC](https://discourse.nodered.org/t/i-have-problem-with-installing-node-red-pls-can-someone-help-me/74497/9 "2023-01-31T22:14:39Z")

</div>

Can you try running these and let us know the output?

`npm config get prefix` And `npm config get cache`

---

<div class="post-metadata">

### Author: ![kwa45](https://avatars.discourse-cdn.com/v4/letter/k/9dc877/32.png) [@kwa45](https://discourse.nodered.org/u/kwa45)
#### Post date: [31 January 2023 22:31 UTC](https://discourse.nodered.org/t/i-have-problem-with-installing-node-red-pls-can-someone-help-me/74497/10 "2023-01-31T22:31:49Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/8/584ab66f14b59e52a74904d1c232364e17778e57.png)

---

<div class="post-metadata">

### Author: ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)
#### Post date: [31 January 2023 22:38 UTC](https://discourse.nodered.org/t/i-have-problem-with-installing-node-red-pls-can-someone-help-me/74497/11 "2023-01-31T22:38:04Z")

</div>

Ok...

Did you ever run `npm config set prefix $env:ALLUSERSPROFILE\npmglobal`  
in `CMD` your self and not `powershell` - `$env:` is a Power Shell thing, and is usually substituted with the value it represents - not so the case in `CMD`

within `CMD` - what do you get with `echo %ALLUSERSPROFILE%`

---

<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: [1 February 2023 01:03 UTC](https://discourse.nodered.org/t/i-have-problem-with-installing-node-red-pls-can-someone-help-me/74497/12 "2023-02-01T01:03:17Z")

</div>

> [@marcus-j-davies](#):
>
> npm config get prefix

On my dev PC, I get `C:\Users\myuserid\AppData\Roaming\npm` which is what I'd expect. I get the same even if running from an elevated command prompt which, as I said before, you shouldn't be doing.

So I'm afraid that you've somehow borked your Node.js/npm installation.

---

<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: [2 April 2023 01:03 UTC](https://discourse.nodered.org/t/i-have-problem-with-installing-node-red-pls-can-someone-help-me/74497/13 "2023-04-02T01:03:20Z")

</div>

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