@pitaj yep that was it, turns out the Bitnami Stack displays a different version that I is actually running and isn't updatable. had to build a server from scratch turned out to be a good thing in the end.
Launch application with nodejs
@Rémy-Verger It's not
node path/to/the/application/, so if you're already within the directory you can give it a
.as path (
.= current directory).
node /var/www/, those are equivalent.
Thanks dude but it's don't work.
Library probblem ? Or code error ?
Does it work if you call
npm installwithin /var/www first (I assume you have
npminstalled)? I just noticed you haven't done that yet, it installs dependencies for that project.
@frissdiegurke are you sure it's not
Perhaps OP could also try
@julian Did you mean
node package.json? I don't see any server.json. Yes, I am sure. Calling the package.json with node will not start any application, It would (probably; I have no way proving this) interpret the JSON content alike
require("./package.json")but won't start the
Woops, I meant
node server... either that, or
serverought to be an executable. Would have to look inside the file to know for sure
@julian server is a directory (see OP) it could be server/httpServer.js thought, but the package.json should specify the entry point anyways; Thus
node .within the directory containing package.json is always best.
Oh thanks i didn"t install npm
But now when i did "npm start" and i want to execute the code i got this error
ty guys BTW
@Rémy-Verger What program is this anyway? Perhaps you're better off asking them directly for help