I have an app that works great on my local Windows PC, but when I upload it to my server I get this error:
App 23654 output: at Interface.helper_js_1.helper.addEventListener (/home/username/public_html/example.com/app/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:183:68)
App 23654 output: at onClose (/home/username/public_html/example.com/app/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:193:20)
To address this I thought I'd upgrade to the latest version of Node.js, but even after installing nvm and running the n stable command I am still told my version of Node is 10 when I type /opt/cpanel/ea-nodejs10/bin/node -v into SSH.
Then I went back and looked at the log from when the latest version of node was installed and it looks like it was installed to
/usr/local/n/versions/node/14.16.0 instead of /opt/cpanel/ea-nodejs10/bin. How do I upgrade the version of Node used by cPanel to the latest stable version?
Also, does anyone know what might cause Puppeteer not to work?
App 23654 output: at Interface.helper_js_1.helper.addEventListener (/home/username/public_html/example.com/app/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:183:68)
App 23654 output: at onClose (/home/username/public_html/example.com/app/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:193:20)
To address this I thought I'd upgrade to the latest version of Node.js, but even after installing nvm and running the n stable command I am still told my version of Node is 10 when I type /opt/cpanel/ea-nodejs10/bin/node -v into SSH.
Then I went back and looked at the log from when the latest version of node was installed and it looks like it was installed to
/usr/local/n/versions/node/14.16.0 instead of /opt/cpanel/ea-nodejs10/bin. How do I upgrade the version of Node used by cPanel to the latest stable version?
Also, does anyone know what might cause Puppeteer not to work?
Last edited by a moderator: