- Plesk for Linux
- Plesk for Windows
How to install Node.js application in Plesk?
Upload the Node.js application files, including
package.json, to the server using File Manager.
Go to Domains > example.com > Node.js and set the application configuration:
Click NPM install and Run script if necessary.
Connect to the server using SSH.
npm install "packagename"command to fetch and install the package from a npmjs.com repository.
"packagename"should be replaced with your package name. In the example below, the application blockchain-wallet-service is used.
# export PATH=$PATH:/opt/plesk/node/7/bin/
# /opt/plesk/node/7/bin/npm install -g blockchain-wallet-service
# /opt/plesk/node/7/bin/blockchain-wallet-service start --port 3000
Note: instead of the
rootuser, it is better to use one of the system users of subscriptions to run 3rd-party applications in order to avoid possible security issues.
If there is no executable
/opt/plesk/node/7/bin/npm, go to the Plesk menu Tools & Settings > Updates and Upgrades > Add/Remove Components and install the components Node.js support.
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!
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'.
i cannot run my node app using typescript. After searching forums i wasn't able to find a resolution for this:
const jsimport = require('express');
// 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:
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.
Florian Wagner I got the same issue. Did you build your typescript app using npm run build?
Where would someone do this in Plesk UI:
"Click NPM install and Run script if necessary."
What if I have Node.js support enabled, the extension - installed and no node directory under /opt/plesk? Ever considered that case????
Please sign in to leave a comment.