lighthouse-ci: gitlab ci blocks during run

lighthouserc.js

module.exports = {
    ci: {
        collect: {
            url: [
                'http://127.0.0.1:8089/'
            ],
            numberOfRuns: 3,
            startServerCommand: "PORT=8089 node src/server",
            settings: {
                hostname: '127.0.0.1',
                chromeFlags: ['--no-sandbox'],
            },
        },
        upload: {
            target: 'temporary-public-storage',
        }
    }
}

.gitlab-ci.yml

lhci:
  stage: test
  image: cypress/browsers:node-18.16.1-chrome-114.0.5735.133-1-ff-114.0.2-edge-114.0.1823.51-1
  script:   
    - npm install
    - npm install -g @lhci/cli@0.13.x
    - npm run build
    - lhci autorun --config=./lighthouserc.js || echo "LHCI failed!"
image

About this issue

Most upvoted comments

Has the npm package been compromised?

$ npx lhci --version
Hello, this is AnupamAS01!

Has the npm package been compromised?

$ npx lhci --version
Hello, this is AnupamAS01!

npm install -g @lhci/cli not npm install -g lhci. I too made this hilarious mistake.