Skip to content

Can't install on debian 11 | Fails to install puppeteer #1544

@vistar

Description

@vistar

But I want to use playwright.

Local install npm install backstopjs and global npm install -g backstopjs gets an errors:

npm WARN deprecated [email protected]: The package has been renamed to `open`
npm ERR! code 1
npm ERR! path /usr/local/lib/node_modules/backstopjs/node_modules/puppeteer
npm ERR! command failed
npm ERR! command sh -c node install.mjs
npm ERR! file:///usr/local/lib/node_modules/backstopjs/node_modules/puppeteer/install.mjs:31
npm ERR!   const {downloadBrowser} = await importInstaller();
npm ERR!                             ^^^^^
npm ERR! 
npm ERR! SyntaxError: Unexpected reserved word
npm ERR!     at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
npm ERR!     at async link (internal/modules/esm/module_job.js:42:21)
npm --version
7.5.2

node --version
v12.22.12

lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions