Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vistar opened this issue Feb 15, 2024 · 1 comment
Open

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

vistar opened this issue Feb 15, 2024 · 1 comment

Comments

@vistar
Copy link

vistar commented Feb 15, 2024

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
@vistar
Copy link
Author

vistar commented Feb 15, 2024

All is ok after update npm and nodejs:

npm --version
10.4.0

node --version
v21.6.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant