jenkins - Why doesn't postinstall run everytime? -


i have package.json file has following json @ bottom.

"scripts": {     "postinstall": [       "./node_modules/bower/bin/bower install && ./node_modules/protractor/bin/webdriver-manager update"     ]   } 

my reason having bower dependencies , protractor tests run after "npm install". however, seems "postinstall" doesn't run. i'm trying setup on jenkins, i'd able run following commands , go.

npm install grunt jenkins  

the jenkins task calls tasks build, test, , run e2e tests.

i able fix changing command array string.

"scripts": {     "postinstall": "./node_modules/bower/bin/bower install && ./node_modules/protractor/bin/webdriver-manager update"   } 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -