“ bash: jq: command not found” 将 jq 可执行文件添加到 env 变量后 (windows)
" bash: jq: command not found" after adding jq execuable file to env variable (windows)
我想通过命令(在 bash)curl "https://jsonplaceholder.typicode.com/users" | jq
在本地测试一个 json 文件,方法是按照此教程视频进行操作:https://www.youtube.com/watch?v=rrjIVepRqPI
我按照每个步骤将可执行文件添加到环境变量路径中,但根本没有工作,我得到了结果:
$ 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)
我错过了什么吗?为什么我仍然有错误 bash: jq: command not found
??
你可以.
你只需要将它安装在你的 git bash PATH:
curl -L -o /usr/bin/jq.exe https://github.com/stedolan/jq/releases/latest/download/jq-win64.exe
然后 jq 将与您的管道命令一起工作。
我想通过命令(在 bash)curl "https://jsonplaceholder.typicode.com/users" | jq
在本地测试一个 json 文件,方法是按照此教程视频进行操作:https://www.youtube.com/watch?v=rrjIVepRqPI
我按照每个步骤将可执行文件添加到环境变量路径中,但根本没有工作,我得到了结果:
$ 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)
我错过了什么吗?为什么我仍然有错误 bash: jq: command not found
??
你可以
你只需要将它安装在你的 git bash PATH:
curl -L -o /usr/bin/jq.exe https://github.com/stedolan/jq/releases/latest/download/jq-win64.exe
然后 jq 将与您的管道命令一起工作。