Bowerrc installation host does not work

According to this post, bower should be able to run postinstall script in versions 1.3.1 and higher. I am using bower 1.3.12.

Here is my bowerrc file:

{ "scripts": { "postinstall": "./node_modules/grunt-cli/bin/grunt" } } 

However, when I install the package using the gazebo, the hook does not start. What am I doing wrong?

+5
source share
2 answers

I have the same problem as you. I was resolved by adding the cwd variable to the .bowerrc file:

 { "cwd": "./", "scripts": { "postinstall": "grunt wiredep" } } 
+2
source

The simple reason is that you do not have packages in your bower.json or all packages have been installed.

Please see my problem pointed out on github: https://github.com/bower/bower/issues/2302

0
source