Install Puppeteer
Want to run Puppeteer in your project?
This article walks you through enabling Puppeteer support on your cluster and installing Puppeteer itself.
Prerequisites
Before adding the Node.js node group, add at least one Node.js version to the cluster:
- Navigate to 'Servers' > 'Clusters'.
- Select the cluster.
- Navigate to 'Properties' > 'NodeJS'.
- Add the Node.js version(s) you need.
Steps
1. Add the Puppeteer and Node.js node groups
Add the 'Puppeteer' and 'Node.js' node groups to the cluster. See Add a node group.
What is installed
Only the OS-level dependencies required by Puppeteer are installed — not Puppeteer itself. This gives you control over the Puppeteer version used in your project.
2. Set the default Node.js version for your UNIX user
Namespaced UNIX users
This assumes namespaced UNIX users (the default). See UNIX user namespacing.
There are two ways to set the default Node.js version for a UNIX user:
Directly
- Navigate to 'Advanced' > 'UNIX Users'.
- Select the UNIX user.
- Under 'Manage', click 'Update Default NodeJS Version'.
Via the project
- Navigate to 'Projects'.
- Select the project.
- Navigate to 'Advanced'.
- Under the 'UNIX User' tile, click 'Manage'.
- Under 'Manage', click 'Update Default NodeJS Version'.
3. Install Puppeteer in your project
Install Puppeteer inside your own project, using your preferred package manager. For example:
npm install puppeteer
You control which version of Puppeteer is used.