The npm scripts in self hosted runner are not working. The problem seems to be in the yarn2 dependency cache.
image: node:latest .only: &only refs: - master - merge_requests - /^prod-.*/ .defaultJob: &defaultJob only: <<: *only tags: - opeq-runner eslint: <<: *defaultJob stage: lints script: - yarn - yarn eslint typecheck: <<: *defaultJob stage: lints script: - yarn - yarn typecheck
concurrent = 5 check_interval = 0 shutdown_timeout = 0 [session_server] session_timeout = 1800 [[runners]] name = "opeq-runner" url = "https://gitlab.com" id = token = "" token_obtained_at = 2023-10-09T22:14:01Z token_expires_at = 0001-01-01T00:00:00Z executor = "docker" [runners.docker] tls_verify = false image = "ansible/ansible" privileged = false disable_entrypoint_overwrite = false oom_kill_disable = false disable_cache = false volumes = ["/root/gitlab-runner:/root/gitlab-runner:rw"] shm_size = 0
$ yarn eslint Usage Error: Couldn't find the node_modules state file - running an install might help (findPackageLocation)
Hint how to customize the runner to make the jobs work.