[英]Gitlab CI build not working
我嘗試使用其YAML文件從Gitlab的CI開始。 我的存儲庫中包含一個angular 2應用程序,該應用程序在構建時需要運行e2e和單元測試,因此腳本中的其中一行嘗試通過NPM安裝依賴項以提供此功能,但始終會失敗,以下是我的YAML腳本和一個示例我遇到的錯誤,由於某些未知原因而趨於變化。
before_script:
- apt-get update -y && apt-get upgrade -y
- apt-get install -y nodejs
- apt-get install -y npm
- npm update npm -g
- npm cache clean
- npm install -g angular-cli
test:
script:
- ng test
- ng e2e
嘗試將npm install -g angular-cli
更改為npm install -g @angular/cli
。 以前的版本已被棄用。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.