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