January 2018
Beginner
658 pages
13h 10m
English
Next up, we have to specify a script in package.json. Inside package.json, you might have noticed we have a scripts object, and in there we have a test script.
This gets set by default for npm:

We can create all sorts of scripts inside the scripts object that do whatever we like. A script is nothing more than a command that we run from the Terminal, so we could take this command, node server.js, and turn it into a script instead, and that's exactly what we're going to do.
Inside the scripts object, we'll add a new script. The script needs to be called start:
This is a very specific, built-in script and we'll ...