Project Setup: Part Two
Learn how to install the project dependencies in our project folder.
We'll cover the following...
We'll cover the following...
The following tasks continue where we left off in the previous lesson.
Task 3: Install project dependencies
Let’s install Express for our project as follows:
npm install express
What does running the above command create in our folder?
A new folder called node_modules is created. It’s the folder where npm installs the packages the project needs, such as dependencies.
The express package is installed in the current file tree under the node_modules subfolder.
As this happens, npm also adds the express entry in the dependencies property of the package.json file present in the current folder.
Finally, a package-lock.json file is also created.
To see the latest version of all ...