I’m trying to install Puppeteer (https://pptr.dev/) globally on Ubuntu 20.04:
$ sudo npm install puppeteer -g
I received this error message:
npm error code 1
npm error path /usr/local/lib/node_modules/puppeteer
npm error command failed
npm error command sh -c node install.mjs
npm error A complete log of this run can be found in: /root/.npm/_logs/2024-05-03T19_37_45_119Z-debug-0.log
My node version is v18.20.2
My npm version is 10.5.0
What could be causing this error?
Marcelo de Moraes is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.