Development Site wiht Gitsby... Error dependency Module npm mozjpeg

Replace this template with your information

Describe your question in as much detail as possible:

  • What are you seeing, and how does that differ from what you expect to see?

  • Consider including screenshots, error messages, and/or other helpful visuals

  • What version are you on? Are you using self-managed or GitLab.com?

    • GitLab (Hint: /help):
    • Runner (Hint: /admin/runners):
  • Add the CI configuration from .gitlab-ci.yml and other configuration if relevant (e.g. docker-compose.yml)

  • What troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been?

Thanks for taking the time to be thorough in your request, it really helps! :blush:

Here is the .gitlab-ci.yml and the Windows CMD with the error… From my little knowledge it seems that the error is that it cannot install the module … Possibly indicating a command like npm install (module) is solved but I do not know how to execute such action

GNU nano 2.9.3 .gitlab-ci.yml

image: “node:lts-alpine”

stages:

  • build
  • test
  • deploy

These folders are cached between builds

http://docs.gitlab.com/ce/ci/yaml/README.html#cache

cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
# Default cache directory from https://classic.yarnpkg.com/en/docs/install-ci/#gitlab.
- node_modules/
# Enables git-lab CI caching. Both .cache and public must be cached, otherwise builds will fail.
- .cache/
- public/

yarn:install:
stage: build
script:
# Install via yarn with frozen-lockfile to allow reproducible dependencies and check-files option to check if the node_modules cache is valid.
- yarn install --frozen-lockfile --check-files --non-interactive --audit
rules:
- if: $CI_COMMIT_BRANCH == “master”
- if: $CI_MERGE_REQUEST_ID

test:unit:
stage: test
needs: [“yarn:install”]
script:
- yarn test:unit
rules:
- if: $CI_COMMIT_BRANCH == “master”
- if: $CI_MERGE_REQUEST_ID

test:gatsby:
stage: test
needs: [“yarn:install”]
script:
- ./node_modules/.bin/gatsby info

  • if: $CI_MERGE_REQUEST_ID

test:gatsby:
stage: test
needs: [“yarn:install”]
script:
- ./node_modules/.bin/gatsby info
rules:
- if: $CI_COMMIT_BRANCH == “master”
- if: $CI_MERGE_REQUEST_ID

pages:
stage: deploy
needs:
- yarn:install
- test:unit
- test:gatsby
script:
- ./node_modules/.bin/gatsby build --prefix-paths
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_BRANCH == “master”

The CMD with error:

[5/5] Building fresh packages…
error /builds/Venehindustrial/blog/node_modules/mozjpeg: Command failed.
Exit code: 1
Command: node lib/install.js
Arguments:
Directory: /builds/Venehindustrial/blog/node_modules/mozjpeg
Output:
:warning: spawn /builds/Venehindustrial/blog/node_modules/mozjpeg/vendor/cjpeg ENOENT
:warning: mozjpeg pre-build test failed
:information_source: compiling from source
:heavy_multiplication_x: Error: Command failed: /bin/sh -c autoreconf -fiv
/bin/sh: autoreconf: not found
at /builds/Venehindustrial/blog/node_modules/bin-build/node_modules/execa/index.js:231:11
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Promise.all (index 0)
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
ERROR: Job failed: exit code 1