在gitlab上构建.NET Webapp时出错

时间:2019-03-29 20:41:19

标签: .net docker npm continuous-integration gitlab

我正在创建.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

0 个答案:

没有答案