Check whether Node.js is installed
Before anything, check whether Node.js is installed. Open a terminal (Command Prompt or shell) and run:
Step 1: Install Node.js
1
Download Node.js
Go to the Node.js official website and download the LTS version for your operating system.

2
Install Node.js
Run the installer you downloaded and follow the installation wizard.

Step 2: Install Playwright
1
Run the installer
Install Playwright globally by running the following command:
2
Configure the project
Follow the prompts to configure the project, and make sure browsers are installed when prompted. The screenshot below is one example, but you can make your own choices.
After Playwright is installed, you get the following message:


Step 3: Create a project directory
Create a directory for your project and go to that location:Step 4: Set up Playwright with a NodeMaven proxy
Create a new file calledplaywright_ip_whitelist.js in your src directory using your preferred text editor, then add the following code:
Step 5: Run your script
Open Command Prompt, navigate to thesrc directory, and run:
