Using npm, how can you install multiple modules at once locally?

Experience Level: Junior
Tags: npm

Answer

To install one, two or more modules locally, open the command-line, change your current directory to the directory that contains your project with file package.json and run the following command:

npm install <module1> <module2> <module3>

To install one, two or more modules globally, open the command-line, change your current directory to the directory that contains your project with file package.json and run the following command:

npm install -g <module1> <module2> <module3>

Comments

No Comments Yet.
Be the first to tell us what you think.
npm for beginners
npm for beginners

Are you learning npm ? Try our test we designed to help you progress faster.

Test yourself