___ ___ erkimt NPM --save doubt [duplicate] ______ qstntxt ___

What difference does it make when installing a module via NPM, using the --save?

When using npm install nomedom module, it installs and writes the modules in the project folder.

I did not understand then when to use npm install nomedomodulo --save

Someone to help me?

    
______ azszpr166468 ___

The %code% saves the package in the %code% file, which serves as a reference for your project. Soon when you use the command %code% all modules that were installed with %code% will be installed without the need to set them one by one.

Referring to npm install documentation :

  

-S , - save : Package will appear in dependencies.

    
___

4

What difference does it make when installing a module via NPM, using the --save?

When using npm install nomedom module, it installs and writes the modules in the project folder.

I did not understand then when to use npm install nomedomodulo --save

Someone to help me?

    
asked by anonymous 19.11.2016 / 02:27

1 answer

4

The --save saves the package in the package.json file, which serves as a reference for your project. Soon when you use the command npm install all modules that were installed with --save will be installed without the need to set them one by one.

Referring to npm install documentation :

  

-S , - save : Package will appear in dependencies.

    
19.11.2016 / 02:29