August 2017
Beginner
374 pages
10h 41m
English
When creating a new project, we will first need to create a package.json file. The easiest way to do this is to run the following command:
npm init
This command will ask you a few questions regarding the project name, version, and so on. Change the entry point to src/index.js. For everything else, we can simply press Enter. We can change these values in the generated package.json file later. If you already have an existing project, we can change the entry point by adjusting the main property in the package.json file.
Afterwards, create a src folder to store your JavaScript ...
Read now
Unlock full access