During sonar app stage run facing this npm not found issue
$ npm install --legacy-peer-deps
scripts-152/step_script: line 237: npm: command not found
My sonar-app stage is like
sonar-app:
<<: *tpl_build_gcp
stage: sonar_audit
image:
name: sonar-scanner-cli:latest-release
entrypoint: [""]
script:
- apk add --no-cache chromium
- export CHROME_BIN=/usr/bin/chromium-browser
- cd app/path
- ls
- npm install --legacy-peer-deps
- npm run unit-test
- ls
- sonar-scanner -Dsonar.host.url=${SONAR_HOST_URL} -Dsonar.login=${SONAR_TOKEN} -Dsonar.projectKey=application/path -Dsonar.sources=src