How to run jq from gitbash in windows?

前端 未结 5 1709
忘掉有多难
忘掉有多难 2020-12-29 02:47

I have gitbash in Windows. I am trying to run jq but its giving me error.

$ ./jq-win64.exe 
jq 
parse error: Invalid numeric litera         


        
5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-29 03:48

    I hate answers that say you need another to use another tool to download, but using https://chocolatey.org/ made this incredibly simple for me.

    From an elevated command-prompt, run:

    choco install jq
    

    jq magically works from bash going forward.

提交回复
热议问题