Pa11y Installation On centos - saviovettoor/DevOps-wiki GitHub Wiki

First let's Select the node package from URL node-v8.11 Installation

wget http://nodejs.org/dist/v8.11.1/node-v8.11.1-linux-x64.tar.gz

Untar the file

sudo tar --strip-components 1 -xzvf node-v* -C /usr/local

Make sure $PATH

PATH=$PATH:$HOME/bin:$HOME/.local/bin/:/usr/local/bin/

Checking node version

]# node --version
v8.11.1

Checking npm version

]# npm --version
5.6.0

Installing a specific version(3.10.10) of npm

]# npm install [email protected] –g

Installing pa11y

]# npm install pa11y –g