Issue
I wanted to test a json file locally with command (in bash)curl "https://jsonplaceholder.typicode.com/users" | jq
by following this tutorial video: href="https://www.youtube.com/watch?v=rrjIVepRqPI" rel="noreferrer">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
??
Solution
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.
Answered By - VonC Answer Checked By - David Goodson (WPSolving Volunteer)