I had to run this on build server:
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list
apt-get update
apt-get install -y google-chrome-stable xvfb
npm i -g @angular/cli
All the instructions except the last install Chrome.
The last installs Angular and is not needed if you are not using Angular.
NOTE: I had to have Chrome installed because ng test uses Chrome - however, I've since switched to Jest which I believe can run unit tests without Chrome installed - although I haven't checked this.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…