However, in all other cases, CML can be installed directly as a Node.js package
using the package manager
npm (see below):
$ npm i -g @dvcorg/cml
You may also need to install additional dependencies to use DVC plots and Vega-Lite:
$ sudo apt-get install -y \ libcairo2-dev libfontconfig-dev \ libgif-dev libjpeg-dev libpango1.0-dev librsvg2-dev $ npm install -g vega-cli vega-lite
Instructions for installing Node.js and its package
npm can be found below.
Install Node.js from source:
$ curl -sL https://deb.nodesource.com/setup_16.x | bash $ apt-get update $ apt-get install -y nodejs
Node.js is likely already available in most GitHub Actions runners. However, to install a particular version, add the following step to your workflow:
- uses: actions/setup-node@v1 with: node-version: '16'