Answer the question
In order to leave comments, you need to log in
What is the purpose of installing dependencies (cd first-app && npm-install)?
Installed express, created the project express first-app,
The article says to install dependencies in this way cd first-app && npm-install .
I can’t understand what kind of addiction is and why it is needed.
Answer the question
In order to leave comments, you need to log in
Before learning Express, it would be nice to read what npm is and why it is needed. In short, without dependencies, nothing will work.
In more detail: npm install installs the packages specified in package.json in the node_modules directory. When writing in the application:
the node looks for the express package in the node_modules folder and loads it into the application.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question