$: vscode: - services: - docker - vscode docker: # 直接沿用以前的默认镜像 image: cnbcool/default-env volumes: - node_modules stages: - name: install if: | [ -f "package.json" ] script: - npm config set registry http://mirrors.cloud.tencent.com/npm/ - npm install