How to install and run Node.js application via Plesk?




  • Avatar
    Tre Stange


    I'm trying to run dart-sass with node, there is no 'app.js' file and I have no idea what to point the Application Startup File to. The google isn't telling me squat. Help!


    Comment actions Permalink
  • Avatar
    Francisco Garcia

    Hello Tre Stange,

    As far as I see on the website, this 'dart-sass' is something to be integrated into your existing project, and what I understand with that is that you must have already an application that integrates with 'dart-sass' code.

    Said that, the best you can do is to contact them to gather more information about 'dart-sass'.

    Comment actions Permalink
  • Avatar
    Florian Wagner

    Hi there,

    i cannot run my node app using typescript. After searching forums i wasn't able to find a resolution for this:

    // Works
    const jsimport = require('express');
    console.log('Hello World');

    // Typescript default import doesn't work...
    import express from 'express';


    Phusion Passenger fails with a syntax error even if typescript is installed as a NPM dependency:

    import express from 'express';
    SyntaxError: Unexpected identifier
        at Module._compile (internal/modules/cjs/loader.js:718:23)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10)
        at Module.load (internal/modules/cjs/loader.js:641:32)
        at Function.Module._load (internal/modules/cjs/loader.js:556:12)
        at Module.require (internal/modules/cjs/loader.js:681:19)
        at Module.require (/usr/share/passenger/helper-scripts/node-loader.js:80:25)
        at require (internal/modules/cjs/helpers.js:16:16)
        at loadApplication (/usr/share/passenger/helper-scripts/node-loader.js:243:2)
        at setupEnvironment (/usr/share/passenger/helper-scripts/node-loader.js:214:2)
        at Object.<anonymous> (/usr/share/passenger/helper-scripts/node-loader.js:133:1)



    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello Florian Wagner,

    To receive an answer to your question I would suggest starting a topic at StackOverflow or similar forum.

    From the Plesk Technical Support side we aren't experts in Node.js apps creation.

    However, maybe someone from other Pleskians could give a hint.

    Comment actions Permalink
  • Avatar
    Maximilian Hraschan

    Florian Wagner I got the same issue. Did you build your typescript app using npm run build? 

    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request