简体   繁体   中英

Adding npm package dependencies to Angular2 project

Recently I have added the ngx-bootstrap component to an angular project that my team is working on.

I am finding it a bit painful to have to tell each team member that they need to run npm install ngx-bootstrap --save to install the component locally.

Is there any configuration I can add to the project so that this command is executed automatically when the project is built locally?

Not everybody needs to run this command. npm install ngx-bootstrap will install the package locally. If you add the --save flag, it will also be added to your package.json . Therefore, anybody who wants to use your project in the future will simply have to use npm install to install all dependencies defined in your project locally.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM