It was my bad. I had two different versions of Hugo installed. I had an earlier version installed elsewhere (older version - 0.80) which was set in the PATH environment variable. Today I had installed it via Chocolatey and it was not set in the path, and hence it caused the confusion when I simply invoked ‘hugo’ it took the older version.
After I updated the PATH environment variable with the latest version of hugo with the following steps,it solved the problem.
Prefixing the latest HUGO path in the PATH env variable, so that it gets picked up.
C:\raghs\prfsnl\hugoPractices\hugo-cupper-theme-test (master)
λ set PATH=C:\ProgramData\chocolatey\lib\hugo\tools;%PATH%
Later when I invoke hugo on the same terminal/command prompt, it is verifying the latest.
λ hugo version
hugo v0.83.1-5AFE0A57 windows/amd64 BuildDate=2021-05-02T14:38:05Z VendorInfo=gohugoio
Also, it solves the problem. I dont get any errors when I run the hugo server.
C:\raghs\prfsnl\hugoPractices\hugo-cupper-theme-test (master)
? hugo server -D
Start building sites …
| EN
-------------------+-----
Pages | 6
Paginator pages | 0
Non-page files | 0
Static files | 32
Processed images | 0
Aliases | 0
Sitemaps | 1
Cleaned | 0
Built in 38 ms
Watching for changes in C:\raghs\prfsnl\hugoPractices\hugo-cupper-theme-test\{archetypes,content,data,layouts,static,themes}
Watching for config changes in C:\raghs\prfsnl\hugoPractices\hugo-cupper-theme-test\config.toml
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
You are very welcome @zwbetz . In fact, the first and best loved theme of Hugo is yours - Cupper Theme. I do have some struggles in setting it up. I am in the process of learning Hugo now with a few other templates.
My Ultimate target is to set up my blog site on Server is with Cupper theme. I will surely be getting back to you for any assistance needed. Kindly do help me out Thank you in advance !!!
Hello @zwbetz , that is so lovely and quick. Thanks for the confirmation on the fix you made. I really appreciate the diligence you show!! Keep up the great spirits!!