• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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