How to fix confusion with multiple hugo installations? Want Hugo-Extended (only)

Greetings Good People,
I’m new to Hugo (a week ago) so please forgive what must be a noob question. I’m on a Windows 10 machine.

I was following a tutorial and installed hugo with the package manager Scoop.
At some point I followed another tutorial on installing Hugo Extended with Chocolately (which is installed with JSON installation). I believe I originally installed Hugo v0.89.1 and somewhere in there I updated to 89.4 but don’t recall how.

Originally, when I did a hugo server I would see that Hugo-Extended was running.
However, at some point I lost the Extended and when I stop and start the Hugo server now I get the plain vanilla Hugo. I suspected that I might somehow have multiple copies of Hugo installed so I did a where hugo which returned the following:

It is possible that the D: installation came from npm.

The D: drive is where I have my HugoSites projects installed

I know how to uninstall Hugo using Scoop (and Chocolately) command but I’m not sure where the
D:\Hugo\bin\hugo.exe came from.
What I want to get to is ONE INSTALLATION of Hugo Extended (preferably by Chocolatey).

Can anyone help clear up my confusion, please? Thanks in advance.

I tried scoop uninstall hugo and got the ERROR: ‘hugo’ isn’t installed.
Running scoop uninstall hugo-extended worked (uninstall successful).

Then I tried chcolatey uninstall hugo-extended and got:

hugo-extended is not installed

So then I tried: chocolatey uninstall hugo and got:

Chocolatey v0.11.3
Uninstalling the following packages:

hugo v0.89.4
This is try 1/3. Retrying after 300 milliseconds.
 Error converted to warning:
 Access to the path 'C:\ProgramData\chocolatey\bin\hugo.exe' is denied.
This is try 2/3. Retrying after 400 milliseconds.
 Error converted to warning:
 Access to the path 'C:\ProgramData\chocolatey\bin\hugo.exe' is denied.
Maximum tries of 3 reached. Throwing error.
hugo not uninstalled. An error occurred during uninstall:
 Access to the path 'C:\ProgramData\chocolatey\bin\hugo.exe' is denied.

Chocolatey uninstalled 0/1 packages. 1 packages failed.

I’ve gotten this same “denied” error in Powershell and CMD (both run as Administrator).

where hugo

now shows only the chocolatey and D: installations

I checked my PATH variable and saw that the \ProgramData\Chocolatey\bin was not there, but D:\Hugo\Bin WAS. So I renamed the hugo.exe there to oldHugo.exe.

Then I downloaded the Precompiled binary:
Unzipped it and changed the executable name to Hugo.exe and put it in the D:\Hugo\Bin folder.
Now doing a where hugo ONLY returns D:\Hugo\bin\hugo.exe

However, stopping and restarting hugo server still doesn’t report I’m using the Hugo-Extended (but I must be because it is letting me edit scss files) ?

What is the output of the command hugo version?

Ah! Thank you. That does tell me “+extended”.

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