Skip to content

less tries to install playwright browsers on install #4396

Closed

Description

@jamesbirtles

To reproduce:

Install less as a dependency in a project

Current behavior:

In the postinstall stage, less tries to install playwright browsers:

$ npm i --foreground-scripts

> [email protected] postinstall
> node scripts/postinstall.js

🎭 Installing Playwright browsers for development...

it happens to hang here for me so it breaks installing at all in my case (without disabling scripts)

Expected behavior:

It should not try to install browsers on my system

Environment information:

  • less version: 4.5.1
  • nodejs version: 20.19.6
  • operating system: linux (NixOS)

Activity

  1. dosubot commented on Jan 12, 2026

    @dosubot

    Hi @jamesbirtles! I'm Dosu and I’m helping the less.js team.

    This happens because [email protected] includes a postinstall script that tries to install Playwright browsers—a side effect of a recent, unintended change and a broken release process. This version is not an official or safe release and does not correspond to any tagged commit in the Less.js GitHub repository. The latest stable version, 4.4.2, does not have this issue and is recommended for use until an official, traceable release is published and the repository and npm package are aligned. There is no workaround for 4.5.1 except downgrading to 4.4.2 or disabling npm scripts during install. More details are available in the discussion here and here.

    To reply, just mention @dosu.


    Share context across your team and agents. Try Dosu.

    Leave Feedback Learn about less.js with Dosu Add Dosu to your team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions