HUGO-MOD-NPM(1)

πŸ’… hugo-mod-npm β€” like, the npm helpers era πŸŽ€

okay so bestie, this is a page from the Hugo Manual, and it's all about hugo-mod-npm β€” the little subcommand that handles your npm biz. iykyk.


✨ NAME ✨

hugo-mod-npm β€” various npm helpers 🫢


🌸 SYNOPSIS 🌸

hugo mod npm [command] [flags]

πŸ¦‹ DESCRIPTION πŸ¦‹

Various npm (Node package manager) helpers. that's it, that's the vibe β€” it's the corner of Hugo that speaks npm. iconic behavior honestly πŸ’–


πŸŽ€ OPTIONS πŸŽ€

  • -h, --help[=false] β€” help for npm. the classic "wait what does this do again" button ✨

πŸ‘‘ OPTIONS INHERITED FROM PARENT COMMANDS πŸ‘‘

these bad boys come down from the parent command, so they work here too β€” no cap, they're inherited 🧚

  • --clock="" β€” set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00 ⏰
  • --config="" β€” config file (default is hugo.yaml|json|toml)
  • --configDir="config" β€” config dir
  • -d, --destination="" β€” filesystem path to write files to
  • -e, --environment="" β€” build environment
  • --ignoreVendorPaths="" β€” ignores any _vendor for module paths matching the given Glob pattern
  • --logLevel="" β€” log level (debug|info|warn|error)
  • --noBuildLock[=false] β€” don't create .hugo_build.lock file
  • --quiet[=false] β€” build in quiet mode 🀫
  • -M, --renderToMemory[=false] β€” render to memory (mostly useful when running the server)
  • -s, --source="" β€” filesystem path to read files relative from
  • --themesDir="" β€” filesystem path to themes directory
ok real talk: --renderToMemory is giving "mostly useful when running the server" energy β€” that's straight from the docs, not me guessing πŸ’€

🌈 SEE ALSO 🌈


go check out hugo-mod-npm-pack next, she's the main character of this little family πŸ¦‹ and that's the whole page, periodt πŸ’…

Hugo 0.169.0 Β· Oct 2026 β€” mwah, luv u, go read the other manpages bestie πŸ“πŸ’œ

πŸ“¦ where this page comes from