-
Book Overview & Buying
-
Table Of Contents
Mastering JavaScript Promises
By :
Let's familiarize ourselves with the environment and how things are getting done using Node.js. First things first, we must know how to set up things to compile the code and run it over our machine.
If you are reading this section, it's assumed that you already have Node.js installed on your machine with the latest release; otherwise, please refer to the earlier section to download and install Node.js.
After you have set up Node.js, check which version of Node.js and NPM is available on your machine by typing in the following commands:
D:\> node –v D:\> NPM –v
The output should be similar to the following screenshot:

Checking versions of Node.js and NPM
Please note that the current version of Node.js is 0.10.31 and the current version of NPM is 1.4.23. Our examples will be based on these versions, not lesser than these versions.
Change the font size
Change margin width
Change background colour