Lekhnath
Lekhnath

Reputation: 4625

Shorhand for installing multiple npm modules from the same package

Any short hand for installing multiple npm modules from the same package ?

I mean, instead of doing:

npm i @angular/common @angular/compiler @angular/core @angu lar/forms @angular/http @angular/platform-browser @angular/platform-browser-dynamic @angular/router @angular/router -deprecated -S

Can I do something like:

npm i @angular/{common, compiler, core, forms, platform-browser, platform-browser-dynamic, router, router-deprecated} -S

Upvotes: 6

Views: 1169

Answers (1)

Lekhnath
Lekhnath

Reputation: 4625

I was much close to the solution in my question. I can do this by removing the extra space character from within curly braces like below:

npm i @angular/{common,compiler,core,forms,platform-browser,platform-browser-dynamic,router,router-deprecated} -S

Upvotes: 7

Related Questions