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 1npm error path /usr/local/lib/node_modules/puppeteernpm error command failednpm error command sh -c node install.mjsnpm 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.2My npm version is 10.5.0
What could be causing this error?