{"id":2146,"date":"2025-06-28T15:18:54","date_gmt":"2025-06-28T06:18:54","guid":{"rendered":"https:\/\/www.rocher.kyoto.jp\/arbr\/?p=2146"},"modified":"2025-06-30T23:20:01","modified_gmt":"2025-06-30T14:20:01","slug":"windows%e3%81%aegemini-cli%e3%81%ab%e3%81%a6%e6%97%a5%e6%9c%ac%e8%aa%9e%e5%85%a5%e5%8a%9b%e3%81%8c%e5%8a%b9%e3%81%8b%e3%81%aa%e3%81%84","status":"publish","type":"post","link":"https:\/\/www.rocher.kyoto.jp\/arbr\/?p=2146","title":{"rendered":"Windows\u306eGemini CLI\u306b\u3066\u65e5\u672c\u8a9e\u5165\u529b\u304c\u52b9\u304b\u306a\u3044"},"content":{"rendered":"\n<p>power shell\u3067gemini cli\u3092\u52d5\u304b\u305d\u3046\u3068\u3057\u305f\u304c\u3001\u65e5\u672c\u8a9e\u306e\u5165\u529b\u3092\u3057\u3088\u3046\u3068\u3057\u3066\u3082\u6700\u5f8c\u306e\u4e00\u6587\u5b57\u3057\u304b\u5165\u529b\u3055\u308c\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u3002\u6628\u65e5\u306f\u3058\u3081\u3066\u52d5\u304b\u3057\u305f\u3068\u304d\u306f\u5165\u529b\u3067\u304d\u3066\u3044\u305f\u3002\u5909\u66f4\u304c\u3042\u3063\u305f\u306e\u306fWindows\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u304c\u304b\u304b\u3063\u305f\u3053\u3068\u3068\u3001Power Shell\u3092\u624b\u52d5\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3057\u305f\u3053\u3068\u3002<\/p>\n\n\n\n<p>X\u3092\u898b\u305f\u3068\u3053\u308d\u3001\u4ed6\u306e\u4eba\u3082\u4eca\u65e5\u304b\u3089\u767a\u751f\u3068\u3044\u3063\u3066\u3044\u308b\u4eba\u304c\u3044\u305f\u306e\u3067Windows\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u304c\u539f\u56e0\u306e\u53ef\u80fd\u6027\u304c\u9ad8\u305d\u3046\u3002<\/p>\n\n\n\n<p>@\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u3000\u3068\u5165\u529b\u3059\u308b\u3068\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u8fbc\u3093\u3067\u3044\u308b\u6307\u793a\u5185\u5bb9\u3092\u8aad\u307f\u53d6\u3063\u3066\u304f\u308c\u308b\u6a5f\u80fd\u304c\u3042\u308b\u3068\u306e\u3053\u3068\u306a\u306e\u3067\u3001\u76f4\u4e0b\u306bgemini_order.txt\u3068\u3044\u3046\u3082\u306e\u3092\u4f5c\u6210\u3057\u3001\u305d\u306e\u30c6\u30ad\u30b9\u30c8\u306b\u6307\u793a\u3092\u66f8\u3044\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> @gemini_order.txt<\/pre>\n\n\n\n<p>\u4e0a\u8a18\u3092\u6253\u3061\u8fbc\u3080\u3053\u3068\u3067\u53d6\u308a\u6025\u304e\u56de\u907f\u3002<strong>\uff08\u4e0b\u306b\u56de\u907f\u7b56\u8ffd\u52a0\uff09<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-twitter wp-block-embed-twitter\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"twitter-tweet\" data-width=\"550\" data-dnt=\"true\"><p lang=\"ja\" dir=\"ltr\">\u3042\u308a\u304c\u3068\u3054\u3056\u3044\u307e\u3059\u3002<br><br>\u30c6\u30ad\u30b9\u30c8(gemini_order.txt)\u306b\u6307\u793a\u66f8\u3044\u3066@gemini_order.txt\u3000\u3046\u3064\u3053\u3068\u3067\u5bfe\u51e6\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>&mdash; \u5317\u6751\uff20\u30a8\u30da\u30a2 (@YoshitakeKitamu) <a href=\"https:\/\/twitter.com\/YoshitakeKitamu\/status\/1938815074963235127?ref_src=twsrc%5Etfw\">June 28, 2025<\/a><\/blockquote><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u56de\u907f\u7b56<\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/google-gemini\/gemini-cli\/issues\/2618\">isuue<\/a>\u306b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>npm install -g @google\/gemini-cli<\/strong>\n\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u52d5\u304f\u3088\u3068\u3044\u3046\u306e\u304c\u3042\u308b\u3002npx\u3060\u3068\u3060\u3081\u3060\u3068\u3002\n\u8a66\u3057\u305f\u3089\u65e5\u672c\u8a9e\u5165\u529b\u3067\u304d\u305f\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">In short, using <strong>npm install -g @google\/gemini-cli <\/strong>and running gemini works fine with the input method. The problem only happens when running with npx https:\/\/github.com\/google-gemini\/gemini-cli .<\/pre>\n\n\n\n<p>\u4e2d\u8eab\u306e\u5dee\u5206\u3068\u304b\u3082\u307e\u3060\u307f\u3066\u3044\u306a\u3044\u3002issue\u307f\u3066\u305f\u3089\u81ea\u5206\u3067\u898b\u308b\u3088\u308a\u65e9\u304f\u5dee\u5206\u7279\u5b9a\u3055\u308c\u308b\u6c17\u304c\u3059\u308b\u3002<\/p>\n\n\n\n<p>gemini\u306b\u5dee\u5206\u805e\u3044\u305f\u3089\u3001readline\u5468\u308a\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u5909\u308f\u3063\u3066\u3044\u308b\u6a21\u69d8\u3002\u9762\u5012\u306a\u306e\u3067\u4e2d\u8eab\u306f\u3084\u3063\u3071\u308a\u898b\u3066\u3044\u306a\u3044<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\u2726 \u627f\u77e5\u3044\u305f\u3057\u307e\u3057\u305f\u3002npx\u3067\u76f4\u63a5GitHub\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u6307\u5b9a\u3057\u3066\u5b9f\u884c\u3057\u305f\u5834\u5408\u306b\u65e5\u672c\u8a9e\u5165\u529b\u304c\u6a5f\u80fd\u3057\u306a\u3044\u554f\u984c\u3067\u3059\u306d\u3002\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u5dee\u5206\u3092\u8abf\u67fb\u3057\u3001\u539f\u56e0\u306e\u53ef\u80fd\u6027\u3092\u3054\u8aac\u660e\u3057<br>  \u307e\u3059\u3002<br><br>  \u7d50\u8ad6\u306e\u8981\u7d04<br><br>  npx\u3067GitHub\u304b\u3089\u76f4\u63a5\u5b9f\u884c\u3055\u308c\u308b\u6700\u65b0\u306e\u958b\u767a\u7248\u3068\u3001npm\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u5b89\u5b9a\u7248\u3068\u3067\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u306e\u5165\u529b\u3092\u53d7\u3051\u53d6\u308b\u305f\u3081\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u5909\u66f4\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br><br><br>  \u3053\u306e\u65b0\u3057\u3044\u30e9\u30a4\u30d6\u30e9\u30ea\u3001\u3042\u308b\u3044\u306f\u305d\u306e\u4f7f\u3044\u65b9\u306b\u3001\u30de\u30eb\u30c1\u30d0\u30a4\u30c8\u6587\u5b57\uff08\u65e5\u672c\u8a9e\u306a\u3069\uff09\u306e\u6271\u3044\u306b\u5bfe\u5fdc\u3057\u304d\u308c\u3066\u3044\u306a\u3044\u554f\u984c\u304c\u3042\u308b\u53ef\u80fd\u6027\u304c\u975e\u5e38\u306b\u9ad8\u3044\u3067\u3059\u3002<br><br>  ---<br><br>  \u5dee\u5206\u306e\u8a73\u7d30\u306a\u8aac\u660e<br><br><br>   1. \u5b9f\u884c\u3055\u308c\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u9055\u3044<br>       * npm install -g @google\/gemini-cli:<br>         npm\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u516c\u5f0f\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f\u5b89\u5b9a\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u5341\u5206\u306a\u30c6\u30b9\u30c8\u304c\u884c\u308f\u308c\u305f\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3059\u3002<br>       * npx https:\/\/github.com\/google-gemini\/gemini-cli .: GitHub\u306b\u3042\u308b\u6700\u65b0\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\uff08\u958b\u767a\u4e2d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\uff09\u3092\u76f4\u63a5\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u5b9f\u884c\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u306f<br>         \u3001\u307e\u3060\u30c6\u30b9\u30c8\u304c\u4e0d\u5341\u5206\u306a\u5909\u66f4\u3084\u3001\u958b\u767a\u9014\u4e2d\u306e\u6a5f\u80fd\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<br><br>   2. \u5177\u4f53\u7684\u306a\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u5dee\u5206<br><br><br><br>  npm\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u5b89\u5b9a\u7248\u3068\u3001\u73fe\u5728\u306eGitHub\u4e0a\u306e\u6700\u65b0\u7248\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u6bd4\u8f03\u3059\u308b\u3068\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u306e\u5bfe\u8a71\u7684\u306a\u5165\u529b\u51e6\u7406\u3092\u62c5\u3046\u90e8\u5206\u306b\u5927\u304d\u306a\u5909\u66f4\u304c\u3042\u308a\u307e\u3057\u305f\u3002<br><br><br>       * \u5b89\u5b9a\u7248\uff08npm\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\uff09:<br>          \u6bd4\u8f03\u7684\u57fa\u672c\u7684\u306aNode.js\u306ereadline\u30e2\u30b8\u30e5\u30fc\u30eb\u306a\u3069\u3092\u5229\u7528\u3057\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u5165\u529b\u3092\u51e6\u7406\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u3001\u6a19\u6e96\u7684\u306a\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u306e\u65e5\u672c\u8a9e\u5165\u529b<br>  \u306b\u9577\u5e74\u5bfe\u5fdc\u3057\u3066\u304d\u305f\u5b9f\u7e3e\u304c\u3042\u308a\u307e\u3059\u3002<br><br><br>       * \u6700\u65b0\u958b\u767a\u7248\uff08npx\u3067\u5b9f\u884c\u3055\u308c\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\uff09:<br>          \u3088\u308a\u9ad8\u5ea6\u306a\u5bfe\u8a71\u6a5f\u80fd\uff08\u4f8b\u3048\u3070\u3001\u5165\u529b\u5c65\u6b74\u306e\u4fdd\u6301\u3084\u8907\u96d1\u306a\u30d7\u30ed\u30f3\u30d7\u30c8\u8868\u793a\u306a\u3069\uff09\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306b\u3001\u65b0\u3057\u3044\u5916\u90e8\u30e9\u30a4\u30d6\u30e9\u30ea\uff08\u4f8b: <strong>node:readline\/promises<\/strong><br>  \u306e\u65b0\u3057\u3044\u4f7f\u3044\u65b9\u3084\u3001\u305d\u306e\u4ed6\u306eCLI\u30e9\u30a4\u30d6\u30e9\u30ea\uff09\u3078\u306e\u79fb\u884c\u304c\u9032\u3081\u3089\u308c\u3066\u3044\u307e\u3059\u3002<br><br><br>      \u3053\u306e\u65b0\u3057\u3044\u5165\u529b\u51e6\u7406\u306e\u4ed5\u7d44\u307f\u304c\u3001Windows\u74b0\u5883\u306b\u304a\u3051\u308b\u65e5\u672c\u8a9e\uff08\u30de\u30eb\u30c1\u30d0\u30a4\u30c8\u6587\u5b57\uff09\u306e\u5165\u529b\u78ba\u5b9a\uff08Enter\u30ad\u30fc\uff09\u3084\u5909\u63db\u4e2d\u306e\u6587\u5b57\u8868\u793a\u3092\u6b63\u3057\u304f\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u3067\u304d\u3066\u3044\u306a<br>  \u3044\u3053\u3068\u304c\u3001\u4eca\u56de\u306e\u554f\u984c\u306e\u76f4\u63a5\u7684\u306a\u539f\u56e0\u3067\u3042\u308b\u3068\u8003\u3048\u3089\u308c\u307e\u3059\u3002<\/pre>\n\n\n\n<p>npm\u3067\u5165\u308c\u305f\u65b9\u306f\u5165\u308c\u305f\u65b9\u3067gitignore\u3067\u7121\u8996\u3057\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u8aad\u307f\u8fbc\u3081\u3066\u3044\u306a\u3044\u6c17\u304c\u3059\u308b\u3002\u307e\u305f\u5f8c\u7a0b\u78ba\u8a8d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>power shell\u3067gemini cli\u3092\u52d5\u304b\u305d\u3046\u3068\u3057\u305f\u304c\u3001\u65e5\u672c\u8a9e\u306e\u5165\u529b\u3092\u3057\u3088\u3046\u3068\u3057\u3066\u3082\u6700\u5f8c\u306e\u4e00\u6587\u5b57\u3057\u304b\u5165\u529b\u3055\u308c\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u3002\u6628\u65e5\u306f\u3058\u3081\u3066\u52d5\u304b\u3057\u305f\u3068\u304d\u306f\u5165\u529b\u3067\u304d\u3066\u3044\u305f\u3002\u5909\u66f4\u304c\u3042\u3063\u305f\u306e\u306fWindows\u306e\u30a2\u30c3\u30d7\u30c7\u30fc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31],"tags":[],"class_list":["post-2146","post","type-post","status-publish","format-standard","hentry","category-oss"],"_links":{"self":[{"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=\/wp\/v2\/posts\/2146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2146"}],"version-history":[{"count":7,"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=\/wp\/v2\/posts\/2146\/revisions"}],"predecessor-version":[{"id":2155,"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=\/wp\/v2\/posts\/2146\/revisions\/2155"}],"wp:attachment":[{"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}