# HELP! Node is installed and npm/Node-RED cannot uninstall it

**URL:** <https://discourse.nodered.org/t/help-node-is-installed-and-npm-node-red-cannot-uninstall-it/30882>\
**Category:** General\
**Created:** [29 July 2020 15:10 UTC](https://discourse.nodered.org/t/help-node-is-installed-and-npm-node-red-cannot-uninstall-it/30882 "2020-07-29T15:10:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tree-frog](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tree-frog/32/89303_2.png) [@tree-frog](https://discourse.nodered.org/u/tree-frog)\
**Post date:** [29 July 2020 15:10 UTC](https://discourse.nodered.org/t/help-node-is-installed-and-npm-node-red-cannot-uninstall-it/30882/1 "2020-07-29T15:10:47Z")

</div>

What is funny is that the node actually works fine... but I cannot upgrade it correctly to have the new updates work.

i probably installed this with npm in the wrong folder context... However, I'd like to see if I can get someone with knowledge about what I did wrong and how to go about un-doing it.

I have this folder here and it's apparently wrong. I used npm to install using the context.

"C:\Users\my\_account\.node-red\> npm uninstall .... but it fails.  
Node-RED shows that I can upgrade it, but cannot remove it. I found the folder here.

"C:\Users\my\_account\AppData\Roaming\npm\node\_modules\node-red-contrib-opcua".  
vs. where everything else is...  
"C:\Users\my\_account\.node-red\node\_modules\node-red-contrib-\_nodes\_that\_I\_can\_uninstall"

The question is which folder do I use in the command line context to uninstall it? I'm hoping that I can uninstall it and I just installed it in the wrong context.

Is the context ""C:\Users\my\_account\AppData\Roaming\npm\> npm uninstall... "

Thanks in advance!!

---

<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:** [29 July 2020 15:22 UTC](https://discourse.nodered.org/t/help-node-is-installed-and-npm-node-red-cannot-uninstall-it/30882/2 "2020-07-29T15:22:49Z")

</div>

Post the output when you try to uninstall.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [29 July 2020 15:29 UTC](https://discourse.nodered.org/t/help-node-is-installed-and-npm-node-red-cannot-uninstall-it/30882/3 "2020-07-29T15:29:43Z")

</div>

It looks like you installed it globally - so try uninstalling it with the -g opton... or you may also need to do that as an admin user. And then once done re-install to the correct place as your normal user.

---

<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:** [27 September 2020 15:29 UTC](https://discourse.nodered.org/t/help-node-is-installed-and-npm-node-red-cannot-uninstall-it/30882/4 "2020-09-27T15:29:44Z")

</div>

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