# Why my Node-red cant install

**URL:** <https://discourse.nodered.org/t/why-my-node-red-cant-install/74525>\
**Category:** General\
**Created:** [1 February 2023 01:35 UTC](https://discourse.nodered.org/t/why-my-node-red-cant-install/74525 "2023-02-01T01:35:18Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![f3lixlee](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/f3lixlee/32/74426_2.png) [@f3lixlee](https://discourse.nodered.org/u/f3lixlee)\
**Post date:** [1 February 2023 01:35 UTC](https://discourse.nodered.org/t/why-my-node-red-cant-install/74525/1 "2023-02-01T01:35:18Z")

</div>

My node.js version is v18.13.0  
when i run cmd he will show me

```auto
Error: EPERM: operation not permitted mkdir 'C:\Users\Programmer4\.node-red'

```

---

<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:38 UTC](https://discourse.nodered.org/t/why-my-node-red-cant-install/74525/2 "2023-02-01T01:38:14Z")

</div>

What command? How are you running it? Are you running from the `Programmer4` user account or a different account? Have you previously tried to install using an elevated command prompt?

---

<div class="post-metadata">

**Author:** ![f3lixlee](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/f3lixlee/32/74426_2.png) [@f3lixlee](https://discourse.nodered.org/u/f3lixlee)\
**Post date:** [1 February 2023 01:50 UTC](https://discourse.nodered.org/t/why-my-node-red-cant-install/74525/3 "2023-02-01T01:50:24Z")

</div>

I using cmd to install and running it. Yep i am running from company laptop is Programmer 4 user account. the last one i actually not use an elevated command prompt.

```auto
node --version && npm --version 
npm install -g --unsafe-perm node-red 

```

---

<div class="post-metadata">

**Author:** ![f3lixlee](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/f3lixlee/32/74426_2.png) [@f3lixlee](https://discourse.nodered.org/u/f3lixlee)\
**Post date:** [1 February 2023 07:05 UTC](https://discourse.nodered.org/t/why-my-node-red-cant-install/74525/4 "2023-02-01T07:05:35Z")

</div>

Another Resolution to resolve this problem? I tried many times. uninstall then install back. Actually what happen to my node-red

---

<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 09:25 UTC](https://discourse.nodered.org/t/why-my-node-red-cant-install/74525/5 "2023-02-01T09:25:38Z")

</div>

> [@f3lixlee](#):
>
> the last one i actually not use an elevated command prompt

Does that mean that at some point, you DID use an elevated prompt? If so, it is possible that the folder was created with the wrong permissions. Try renaming it and restart node-red.

---

<div class="post-metadata">

**Author:** ![f3lixlee](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/f3lixlee/32/74426_2.png) [@f3lixlee](https://discourse.nodered.org/u/f3lixlee)\
**Post date:** [1 February 2023 09:37 UTC](https://discourse.nodered.org/t/why-my-node-red-cant-install/74525/6 "2023-02-01T09:37:41Z")

</div>

Ok Get it. I will try now. Thanks for teaching me on node-red

---

<div class="post-metadata">

**Author:** ![f3lixlee](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/f3lixlee/32/74426_2.png) [@f3lixlee](https://discourse.nodered.org/u/f3lixlee)\
**Post date:** [2 February 2023 01:05 UTC](https://discourse.nodered.org/t/why-my-node-red-cant-install/74525/7 "2023-02-02T01:05:36Z")

</div>

Good Morning from Malaysia  
After I renaming and restart the node-red it still can't installed keep have folder error and I don't know how to resolve it.

---

<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:** [2 February 2023 01:26 UTC](https://discourse.nodered.org/t/why-my-node-red-cant-install/74525/8 "2023-02-02T01:26:10Z")

</div>

Honestly, at this point, I don't know what is causing that. Possibly some kind of anti-malware tool running on the device or some other restriction set by your companies IT department.

Perhaps look at an alternative installation. Try installing node-red locally rather than globally and then start it with the userDir folder set to a sub-folder of node-red. That's how I run node-red anyway. Check out the alternate installer for node-red on my GitHub which should show you the way.

---

<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:** [3 April 2023 01:27 UTC](https://discourse.nodered.org/t/why-my-node-red-cant-install/74525/9 "2023-04-03T01:27:07Z")

</div>

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