Plesk veraltete Node version (12) | Wie upgraden auf Node >17

TSB

Ensign
Registriert
Dez. 2022
Beiträge
215
Hallo,

ich sitze gerade vor einem Problem und zwar will ich eine NodeJS API auf unserem Plesk hochladen und zum laufen bringen,

NodeJS Extension auf Plesk installiert geschafft;
API-Dateien in Plesk hochgeladen geschafft;

und nun das Problem:
Ich hab mein Root Verzeichnis ausgewählt und drücke auf Node-App Starten auf Plesk -läuft-,
dann drück ich daneben auf NPM install und er schmeiß wir Zeilen lang einen Fehler code aus:


Code:
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@3. I'll try to do my best with it!
npm WARN lifecycle npm is using /opt/plesk/node/12/bin/node but there is no node binary in the current PATH. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
/usr/bin/env: 'node': No such file or directory
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN ts-node@10.9.1 requires a peer of @swc/core@>=1.2.50 but none is installed. You must install peer dependencies yourself.
npm WARN ts-node@10.9.1 requires a peer of @swc/wasm@>=1.2.50 but none is installed. You must install peer dependencies yourself.
npm WARN node-fetch@2.6.11 requires a peer of encoding@^0.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN <NAMEDERAPI>@1.0.0 No description
npm WARN <NAMEDERAPI@1.0.0 No repository field.
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! bcrypt@5.1.0 install: `node-pre-gyp install --fallback-to-build`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the bcrypt@5.1.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:


Ich denke halt es liegt an der Node-Version v12, ich hab das Backend mit Node v19 programmiert.

Wie kann ich die Node-Version auf Plesk upgraden, über SSH bin ich schon auf den Server drauf aber wie geht es weiter?

Kennt sich da jemand aus und kann mir helfen?
 
Zurück
Oben