https://nodejs.org/en/download/
After installing Nodejs, check for npm and node version
node -v
npm -v
The script will be run in the browser chromium or chrome.
On Terminal in the specified directory, initialize npm and install npm and puppeteer by running these commands
npm init
npm install
npm i puppeteer