ci/cd 前端自动化部署的一个问题
想问下为什么会
$ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/home/gitlab-runner/.local/bin:/home/gitlab-runner/bin $ npm install --no-optional --registry=https://registry.npm.taobao.org bash: line 85: npm: command not found ERROR: Job failed: exit status 1
npm 找不到是为什么
default: image: node:latest stages: - lint cache: paths: - node_modules/ test: stage: lint before_script: - echo $PATH script: - npm install --no-optional --registry=https://registry.npm.taobao.org - npm run lint only: - master - dev