The first thing we want to do when getting ready to code in node.js is make sure that
NPM are installed on our machine. Start by opening a command window and type the command
Then check to confirm that NPM is installed also using the command
Now once that file is saved, try running it from the command line with the command
node hello.js. Note: Don’t forget to cd to the folder that the file was saved in.
If you see the words “Hello world.” on the next line, it confirms that you have successfully created and run a node.js script.