Skip to content

[CI] Docsy 0.8.0 NPM-package postinstall may fail to run #2116

@chalin

Description

@chalin

This was uncovered by @sftim through his work on

To reproduce the problem, run the following:

hugo new site --format yaml myproject
cd myproject
echo 'theme: docsy' >> hugo.yaml
echo 'themesDir: node_modules' >> hugo.yaml
npm init -y
npm install --save-dev google/docsy#semver:0.8.0 autoprefixer postcss-cli hugo-extended@0.120.4
npx hugo 

Hugo reports: "Error: failed to load modules: module "github.com/FortAwesome/Font-Awesome" not found in "/Users/chalin/tmp/myproject/node_modules/github.com/FortAwesome/Font-Awesome"; either add it as a Hugo Module or store it in "/Users/chalin/tmp/myproject/node_modules".: module does not exist"

The problem is that Docsy's postinstall NPM script isn't being run automatically, but it should.

Metadata

Metadata

Assignees

Labels

CI/infraCI & infrastructure

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions