A
A
AndRussia2022-04-11 17:25:40
JavaScript
AndRussia, 2022-04-11 17:25:40

How to run node.js on openserver?

Hello. Decided to start learning node.js and started by installing it on openserver (nginx). I read several articles on the Internet, through them I created the path.txt file for the node and checked in the console whether the OS sees the node. node -v gives the version, npm -v also works, everything is fine. I found in one article that you need to write location in nginx, which I did (maybe wrong, I’m not sure about this, but I didn’t find another similar article)
62543a00302c1988692278.png
This didn’t work and by going to 127.0.0.1/nodejs I just get the contents of index .js with text
62543a52e7f3e515103370.png
What am I doing wrong and how can I do it right so that everything works?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AndRussia, 2022-04-11
@AndRussia

Decided to work through the terminal. I think the only correct solution in this situation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question