npm Getting started with npm Using npm to manage dependencies


Example

So you want to deploy your app to multiple sites? and your project has too many dependencies to install them one-by-one? Npm has a solution just issue the following command:

npm init

In the project's root folder then follow the instructions on screen (type in the desired value then press enter) and then if you want to save a dependency then add:

--save

after your

npm install

commands for example:

npm install mypackagename --save

And then that dependency will be saved then you don't have to move the "node_modules" folder. In order to install all saved dependency issue:

npm install

and all saved dependencies will be installed.