R
R
Ramil2016-02-10 18:00:16
Node.js
Ramil, 2016-02-10 18:00:16

How to run bower install right after npm install?

You need to run the installation of the bower packages immediately after completing the npm install command from package.json. How can I do that ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Irina Sokolovskaya, 2016-02-10
@ierhyna

For example, like this:
This assumes you have a bower.json that lists everything you need to install.

E
Evgeny Simonenko, 2016-02-10
@easimonenko

Here it is written what you need to do: https://docs.npmjs.com/misc/scripts In short, describe the scripts section in package.json, and in it for install write the bower install command:

{
  "scripts": {
    "install": "bower install"
  }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question