Q
Q
Quber2015-11-02 08:13:53
JavaScript
Quber, 2015-11-02 08:13:53

How to install bower components from bash.sh file?

There is a bash file and a configured bower.
If you execute bower install from the folder with bower.json, then everything is installed normally. But if I am at the root of the server, then this command can no longer be installed.
I have a bash file from which I want to run the installation of all bower components. But it is located in a different location, which means that the bower install command does not work for it. How to correctly write a command in the console to install bowek components?
Tried:

/var/www/sait.ru/bower install
/var/www/sait.ru bower install
bower /var/www/sait.ru install
bower install /var/www/sait.ru
bower install --working-dir=/var/www/sait.ru

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Immortal_pony, 2015-11-02
@Quber

For example like this:
cd /var/www/sait.ru/; bower install

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question