May 2017
Beginner to intermediate
328 pages
7h 17m
English
Let's start with a simple Hello world. We will just log a message to the console.
First, we need to create a Node.js workspace, and this is done by executing the following in the code destination folder:
npm init
You will have to provide some further information on the module you are about to create. If you prefer npm populating the default values for you, just issue the following command:
npm init -f
If you choose the -f parameter, it will create a package and force the default settings. The package name should be taken from the folder name the package is created within.
At this stage, our Node.js package has been created, so let's have a look at the package.json. Some basic information ...
Read now
Unlock full access