Upgrade 7.3-8.0-8.0.1 error

Hi everyone, Nice to see you all again, I’m updating the server version 7.3 to 8.0.1

  1. cd /var/www/peertube/peertube-latest/scripts && sudo -H -u peertube ./upgrade.sh
    sudo systemctl restart peertube # Or use your OS command to restart PeerTube if you don’t use systemd
  2. `cd /var/www/peertube/peertube-latest && sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production node dist/scripts/migrations/peertube-8.0.js`

I have error

Error: Cannot find module '/var/www/peertube/versions/peertube-v7.3.0/dist/scripts/migrations/peertube-8.0.1.js'

What's I do it wrong?
Thanks

I use node -v
v20.19.6 and 22….lts
``
inflating: peertube-v8.0.1/pnpm-patches/tinykeys.patch
inflating: peertube-v8.0.1/pnpm-patches/video.js.patch
inflating: peertube-v8.0.1/pnpm-lock.yaml
inflating: peertube-v8.0.1/pnpm-workspace.yaml

> peertube@8.0.1 install-node-dependencies
> pnpm install --frozen-lockfile --production

sh: 1: pnpm: not found
root@ykjvsfaoan:/var/www/peertube/peertube-latest/scripts#

``

If you are updating and you have this error, be sure to run before updating
npm install -g npm@11.7.0
and check pnpm -v

and please be sure to read all important notes in the changelog: Release v8.0.0 · Chocobozzz/PeerTube · GitHub

I get

pnpm install --frozen-lockfile --production

Hello fellow peertubers!

I’m upgrading from 7,3 now to 8.2.1, and felt on the same error. I ran:
npm install -g npm@11.7.0

but still:

root@<myhost>:~# pnpm -v
-bash: pnpm: orden no encontrada

Shouĺd I upgrade step by step, to some 8.x.y first? And if so, how? or is it ok to upgrade from 7.3.0 directly to 8.2.1?

A phased update would be wise. I mean preparing all the files specified in previous releases.

To do so, the script /var/www/peertube/peertube-latest/scripts/upgrade.sh should download the next version in the recommended upgrade path, not the latest, as it does.