" bash: jq: command not found" after adding jq execuable file to env variable (windows)

19,352

You can run a jq.exe from git bash.

You only need to install it in your git bash PATH:

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

Then jq will work with your pipe command.

Share:
19,352
Cecilia
Author by

Cecilia

Updated on June 06, 2022

Comments

  • Cecilia
    Cecilia almost 2 years

    I wanted to test a json file locally with command (in bash)curl "https://jsonplaceholder.typicode.com/users" | jq by following this tutorial video: https://www.youtube.com/watch?v=rrjIVepRqPI

    I followed each step and added the executable file in the env variable path, but not working at all, I got result:

    $ curl "https://jsonplaceholder.typicode.com/users" | jq
    bash: jq: command not found
    
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100  4670    0  4670    0     0   8584      0 --:--:-- --:--:-- --:--:--  8584
    curl: (23) Failed writing body (795 != 1369)
    
    

    Am I missing anything? Why I still got error bash: jq: command not found??