我正在创建.net core 2.1 Web应用程序,并且希望运行dotnet build
命令,但是该命令将首先运行npm install
这是我当前的脚本:
image: microsoft/dotnet:latest
services:
- node:latest
stages:
- build
before_script:
- "dotnet restore"
build:
stage: build
script:
- "dotnet build"
但是我在gitlab中遇到错误
/bin/sh: 2: /tmp/tmp257cfd205d3547c798929a728113e51e.exec.cmd: node: not found