playwright-headless-install

Install Playwright headless browser in restricted environments without root access.

4|Updated May 14, 2026
One-click install
npx skills add https://github.com/liumeixin/hermes-skills --skill playwright-headless-install
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-headless-install
Source: https://github.com/liumeixin/hermes-skills/tree/main/devops/playwright-headless-install
Command: npx skills add https://github.com/liumeixin/hermes-skills --skill playwright-headless-install

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires npm, and includes scripts (resource) components.

What problem does it solve?

This Skill addresses the challenge of installing Playwright's headless browser in environments without root access or pre-installed browsers.

Core Features & Use Cases

  • Container Environment Support: Facilitates the installation of Playwright in containerized environments.
  • No Root Access: Works in scenarios where you lack root privileges to install software.
  • Custom Browser Cache Path: Allows specifying a custom path for browser cache, which is useful in shared or containerized environments.
  • Multiple Attempt Support: Offers the ability to retry the installation process if it fails due to timeouts.
  • Custom Executable Path: Enables the use of a specific executable path for the headless browser.

Quick Start

Run the command 'playwright-headless-install' to install the Playwright headless browser in your current environment.

Frequently Asked Questions about playwright-headless-install

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I install Playwright headless browser in a container without root access?

To install the Playwright headless browser in a container without root access, use a dedicated installation script designed for restricted environments. This script manages dependency setup via npm without requiring elevated system privileges.

Can I specify a custom browser cache path for Playwright installation?

Yes, you can specify a custom browser cache path for Playwright installation. This feature is particularly useful in shared or containerized environments where default storage locations are not writable or accessible by the current user.

What should I do if my Playwright headless browser installation times out?

If your Playwright headless browser installation times out, you can use the multiple attempt support feature to automatically retry the installation process. This helps overcome transient network failures or slow download speeds in restricted environments.

Does Playwright headless installation work without pre-installed browsers?

Yes, Playwright headless installation works without pre-installed browsers by downloading and configuring the necessary browser binaries directly. It is specifically designed for restricted environments lacking root privileges to install system packages.

Do I need npm and Node.js to install Playwright headless browser in restricted environments?

Yes, you need npm and a Node.js environment to execute the installation scripts and manage dependencies for the Playwright headless browser. These are required to run the installation process in restricted environments.