Closed info-git closed 2 years ago
Hi there, what version of nodejs and npm are you running? This looks to me like your version of node might be old.
Hello Yeah that might be it
$ npm --version
8.5.1
$ nodejs --version
v12.22.9
I'm gonna try and see if there's upgrade instructions I can use
OK. Got it working by following the instructions for the NVM method @ https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-22-04
Working version of node
is v16.14.0
Glad you got it sorted, v8 is a very old version so it's no surprise it doesn't like some more recent syntax. We currently support v14, v16, and v18 so any of those should be fine.
Installed with npm install mdpdf -g