简体   繁体   中英

Git post-merge hook failing through sourcetree

I have a git post-merge hook that calls bower to install any new packages if bower.json was changed following a git merge. Now, when I do a git pull through sourcetree, sourcetree does begin to execute the hook, but it craps out when it comes time to run the actual command, which is bizarre. It does not recognize the bower command at all. Any ideas why?

您是否在运行此提交后挂钩的计算机上全局安装了带有-g标志的bower(这样它就可以运行而无需引用二进制文件)?

npm install -g bower

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