Installing the theme from scratch.
hugo new site [sitename]
cd [sitename]
# Deleting the Themes Directory from the Site
rm -rf themes
hugo mod init github.com/[username]/[sitename]
Configure the theme in hugo.toml
[module]
[[module.imports]]
path = 'github.com/mrhelloboy/seven'
Because the theme requires additional configuration parameters, it’s recommended to use the configuration file provided in this example to avoid errors, and then modify it as needed.
For more information on Hugo Modules and their usage, please refer to Hugo Modules
hugo mod npm pack
npm install
hugo server