M
M
Max Yaremenko2016-10-26 19:32:26
JavaScript
Max Yaremenko, 2016-10-26 19:32:26

How to install a package using npm?

Good day!
I can’t understand what I’m doing wrong:
I write npm install gulp-stylus in the console and instead of the 1st gulp-stylus folder, another 70 folders are put ...
what am I doing wrong?
Thanks

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Dmitry Belyaev, 2016-10-26
@bingo347

It's OK
You need gulp-stylus
And gulp-stylus needs other modules to work, and those other modules also need modules
npm pulls all dependencies on installation

V
Vit, 2016-10-26
@fornit1917

You all do this, it's normal, welcome to the world of npm.

S
SagePtr, 2016-10-26
@SagePtr

Starting from a certain version, npm does not nest node_modules folders inside each other, but stores dependent packages in the node_modules root. Nests only if multiple packages require the same package but different versions.

V
Vitaly, 2016-10-26
@vshvydky

The packages that you put in the project must be installed with the --save key so that they fall into config dependencies, then when transferring the project to another machine, you will not need to install all the packages by hand.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question