Downloading and Using Node.js - barrycumbie/solid-fishstick-snowcats GitHub Wiki
For node.js we have multiple ways to install it
- Through their main website: https://nodejs.org/
- with Chocolatey you could use the command chodo isntall nodejs
- Once installed you should make sure to refresh the environment variables so that the path is properly set
- You can do this by using the command refreshenv
- This should make correct the path for node js and allow for use through the console
- On linux you could use the command sudo apt-get install nodejs
Personally I believe that installing through their main website is the easiest as they have an installer that you are able to select which packages to install along with nodejs
Once it's done, the best way to find out if you installed it correctly is to use the command 'node -v' in cmd.
Once node.js is installed, it only takes a few lines of code to start hosting your own page.
With the following lines of test code saved in the .js format, the user can display a text html message of their choice, from theport of their choosing. Once in the proper directory with your test code, the "node" command can be called in terminal to start hosting.