# Uninstalling/Installing node-red-contrib-google-oauth2

**URL:** <https://discourse.nodered.org/t/uninstalling-installing-node-red-contrib-google-oauth2/33955>\
**Category:** General\
**Created:** [8 October 2020 16:22 UTC](https://discourse.nodered.org/t/uninstalling-installing-node-red-contrib-google-oauth2/33955 "2020-10-08T16:22:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jitrah](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@jitrah](https://discourse.nodered.org/u/jitrah)\
**Post date:** [8 October 2020 16:22 UTC](https://discourse.nodered.org/t/uninstalling-installing-node-red-contrib-google-oauth2/33955/1 "2020-10-08T16:22:13Z")

</div>

Hi team,

I'm trying to use node-red-contrib-google-oauth2 to connect to the Google Analytics Reporting API v4. I'm stuck in a loop where I needed to uninstall and re-install the node. I have uninstall from the "manage palette" UI, as well as from the terminal but I'm left with the node in the below state:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/f/7f212e16912538fdb0bd3fd2b2071d4b5adbba62.png)

Clicking remove gets me this error message:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/5/852023df79486cde77da6110eb260e80cfe798ca.png)

And when I checked the log in the UI and in terminal, I'm not getting any indications of what's wrong/missing or any dependencies.

I've tried to restart the server hosting Node-Red, restart Node-Red itself, delete/reinstall JSON packages but have had no success.

Is there anything else you guys can think about?

Thank you,  
JB

---

<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:** [8 October 2020 18:10 UTC](https://discourse.nodered.org/t/uninstalling-installing-node-red-contrib-google-oauth2/33955/2 "2020-10-08T18:10:55Z")

</div>

Open a terminal and go to your .node-red folder and run  
`npm remove node-red-contrib-google-oath2`  
and copy/paste the result here. Use the `</>` button at the top of the forum text window to paste it in.  
Then do the same using install instead of uninstall.

**[Edit]** In fact before you do that run  
`npm list node-red-contrib-google-oath2`  
and  
`npm list -g node-red-contrib-google-oath2`

---

<div class="post-metadata">

**Author:** ![jitrah](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@jitrah](https://discourse.nodered.org/u/jitrah)\
**Post date:** [8 October 2020 23:31 UTC](https://discourse.nodered.org/t/uninstalling-installing-node-red-contrib-google-oauth2/33955/3 "2020-10-08T23:31:50Z")

</div>

Hey Colin,

Ran what you mentioned and got this:

```auto
-------------------------------------
~/.node-red$ npm list node-red-contrib-google-oath2
node-red-project@0.0.1 /home/ubuntu/.node-red
└── (empty)

~/.node-red$ npm list -g node-red-contrib-google-oath2
/usr/lib
└── (empty)

~/.node-red$ npm remove node-red-contrib-google-oath2
audited 372 packages in 2.595s

29 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
-------------------------------------

```

I'm still getting the same issue.

Thanks,  
JB

---

<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:** [9 October 2020 06:33 UTC](https://discourse.nodered.org/t/uninstalling-installing-node-red-contrib-google-oauth2/33955/4 "2020-10-09T06:33:30Z")

</div>

You didn't run the final one, to try installing it again.

Edit: Just had a thought, you have restarted node red since you uninstalled haven't you?  
Further edit: and also refreshed the page in the browser?

---

<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:** [13 October 2020 09:58 UTC](https://discourse.nodered.org/t/uninstalling-installing-node-red-contrib-google-oauth2/33955/5 "2020-10-13T09:58:51Z")

</div>

@jitrah Does the silence indicate that a restart fixed it?

---

<div class="post-metadata">

**Author:** ![jitrah](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@jitrah](https://discourse.nodered.org/u/jitrah)\
**Post date:** [13 October 2020 22:10 UTC](https://discourse.nodered.org/t/uninstalling-installing-node-red-contrib-google-oauth2/33955/6 "2020-10-13T22:10:31Z")

</div>

@Colin We just got to it this morning. Got this:

```auto
-----------------------------------------------------------------------------
~/.node-red$ npm install node-red-contrib-google-oauth2
+ node-red-contrib-google-oauth2@0.3.2
added 25 packages from 24 contributors and audited 397 packages in 4.734s

29 packages are looking for funding
  run `npm fund` for details

found 3 high severity vulnerabilities
  run `npm audit fix` to fix them, or `npm audit` for details

~/.node-red$ npm list node-red-contrib-google-oath2
node-red-project@0.0.1 /home/ubuntu/.node-red
└── (empty)

-----------------------------------------------------------------------------

```

When I go to Manage Palette, I can see the nodes installed and enabled:

![Screen Shot 2020-10-13 at 3.06.20 PM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/a/1a0b1a8058ad44369b2d1af262dd25ca027a81b9.png)

However, when I search for the Google node to build a new flow, I can't find it:

 ![Screen Shot 2020-10-13 at 3.06.33 PM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/6/e6aaeaafd03d9b5eff8e06abcaf9eae639628a16.png)

Any idea of what a good next step would be?

---

<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:** [14 October 2020 07:34 UTC](https://discourse.nodered.org/t/uninstalling-installing-node-red-contrib-google-oauth2/33955/7 "2020-10-14T07:34:45Z")

</div>

> [@jitrah](#):
>
> `npm list node-red-contrib-google-oath2`

The reason it doesn't show there is that you have a typo in the name.  
First try refreshing the browser window, if that doesn't fix it then in a terminal run  
`node-red-stop`  
`node-red-start`  
refresh the browser window again and see if that fixes it. If not then post the output of the stop/start here.

---

<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:** [13 December 2020 07:34 UTC](https://discourse.nodered.org/t/uninstalling-installing-node-red-contrib-google-oauth2/33955/8 "2020-12-13T07:34:55Z")

</div>

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