How to run jq from gitbash in windows?

前端 未结 5 1716
忘掉有多难
忘掉有多难 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:43

    Easiest solution and always latest version:


    run this curl in your gitbash:

    curl -L -o /usr/bin/jq.exe https://github.com/stedolan/jq/releases/latest/download/jq-win64.exe
    

    or manually save the jq-win64.exe in link above as jq.exe to your /usr/bin (which is in your git bash installation folder)

    (if you are behind a proxy add the -x proxyhost:port)

提交回复
热议问题