How to install node.js on server?
I am really new to servers and I stucked on somewhere. I looked for this for hours but i could not find the solution.
I have a simple node.js app for a chat app. I created a CentOS droplet and installed node.js, NPM, socket.io and pm2 in it. My sockets were running just fine but I could not be able to POST some data to my node.js app. What should I do to install the node.js on a droplet properly? Why I could not be able to POST data? It seemed weird to me because my app was running, I was able to use de sockets but it was not receiving POST data.
Also I tried the node.js on Ubuntu from Marketplace but I coulnd find out how to use it, I couldn’t even figure out how to run my app. And by the way, my app is running all fine in my local Windows.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×