January 2018
Beginner
658 pages
13h 10m
English
We'll start with installing Express. We'll use npm i, which is short for install, to install Express. Remember, you could always replace install with i. We'll grab the most recent version, @4.16.2. Now, we'll be using the save flag as opposed to the save dev flag that we've used for testing in the previous chapter:
npm i express@4.16.2 --save
This command is going to install Express as a regular dependency, which is exactly what we want:

We need Express when we deploy to production, whether it's Heroku or some other service.
Back inside the app, if we open up package.json, we can see we have dependencies ...
Read now
Unlock full access