1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Windowsでjqコマンドのpathが通らないときに確認すること

Last updated at Posted at 2022-03-16

JSONを整形する必要があって、jqをインストールしました。
jqコマンドを使用できるようにするには、pathを通す必要があります。

pathを通すタイミングで、少しつまったので、同じようにつまっている人の参考になれば幸いです。

アプリケーション名の拡張子(.exe)は必要ない

いきなり結論です。

jq.exejqに変更したところ、path通りました。
Screenshot_13.png
これに気付かず、数十分消費しました。

jqコマンド導入のサイトを複数見ましたが、そのすべてで「jq-win64.exejq.exeと変更...」と記載されており、そこをまったく疑っていなかった。。

プロパティを確認すると、アプリケーション(.exe)となっていて、すでに拡張子が含まれていることがわかります。
image.png

こういう問題って、jqに限らないと思うので、疑うクセを忘れないようにしないとですね。

1
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?