• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Svelte Kit with Node v16.10

robinrm

New Pleskian
Hello,

have someone an good instruction for the implementation from SvelteKit in Plesk? Node is already installed but Phusion won't start any websites (Web application could not be started by the Phusion Passenger(R) application server.)

Thanks in advance.
 
The Sollution:

create a file in the build folder named index.cjs with the content
Code:
(() => import('./index.js'))();
as described here on Github.
Make shure that you have configured a node adapter for example see the Sveltekit Instructions.

After installing the package.json i'm getting the error in Node v.17.7.1 and v16.14.0:

  • npm ERR! code 127
  • npm ERR! path /var/www/vhosts/mydomain/node_modules/esbuild
  • npm ERR! command failed
  • npm ERR! command sh -c node install.js
  • npm ERR! sh: 1: node: not found

  • npm ERR! A complete log of this run can be found in:
  • npm ERR! /var/www/vhosts/mydomain/.npm/_logs/2022-03-19T14_35_06_846Z-debug-0.log

After quick check in the filebrowser all modules were installed correctly.

Now point Node to the build/index.cjs und the ducumentspath to /static.

After a restart from node your site should no running without any issuses with the sceleton project from Sveltekit!
 
Back
Top