詹金斯管道构建中的“节点模块”丢失错误

时间:2019-09-20 08:44:48

标签: docker npm dockerfile npm-install devops

我有包含以下角度构建部分的dockerfile。

#header {
  background-color: gray;
  position: fixed;
  justify-content: space-between;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 4rem;
}

#header-img {
  background-color: orange;
  height: 4rem;
  width: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#nav-bar {
  background-color: red;
  width: 25%;
  height: 4rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

在詹金斯管道构建中,出现以下错误。

    RUN apt-get update && apt-get install -y curl
    RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
    RUN apt-get install -y nodejs

RUN npm config set registry https://shnexus0.sohard.de/repository/sedi.npm.development/
RUN npm i -g @angular/cli@latest
RUN npm install
RUN npm install -g typescript

即使我在dockerfile中安装了npm。它显示了节点模块的错误。预先感谢。

0 个答案:

没有答案