Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install multiple gulp packages at once using node?

I just switched to gulp task runner to automate my workflow, but there is this problem whenever i want to start a new project i have to install all packages required in gulpfile.js using the following command:

npm install --save-dev {package name}

Imagine there are 20 of them, it's a bit boring. How can simplify this?

like image 248
Daniel Chikaka Avatar asked Jan 21 '16 11:01

Daniel Chikaka


People also ask

How do I install multiple node modules at once?

To install multiple packages, we need to use the npm install followed by the multiple package names separated by the spaces package1 package2 . This above command installs three packages, which are express, cors and body-parser. You can also checkout how to install the specific version of an npm package.

How do I install multiple node packages?

The npm install command is used to install npm packages to a node_modules/ folder. You can also install a specific version of each package by adding the @version keyword after the package names. npm will install the exact versions you defined in the example above.


1 Answers

You can add multiple package names to npm install:

npm install --save-dev package1 package2 package3

npm will install and save the specified packages in your package.json.

like image 167
saintedlama Avatar answered Nov 13 '22 13:11

saintedlama