U
U
Umid2016-12-05 11:09:17
Node.js
Umid, 2016-12-05 11:09:17

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

1 answer(s)
Y
Yustas Alexu, 2016-12-05
@DarCKoder

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 question

Ask a Question

731 491 924 answers to any question