# Kibana Canvas が Windows版 で動きません。

**URL:** <https://discuss.elastic.co/t/kibana-canvas-windows/142885>\
**Category:** 日本語による質問・議論はこちら\
**Created:** [August 3, 2018, 9:47am UTC](https://discuss.elastic.co/t/kibana-canvas-windows/142885 "2018-08-03T09:47:43Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Hideki\_Kimura](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hideki_kimura/32/22808_2.png) [@Hideki\_Kimura](https://discuss.elastic.co/u/Hideki_Kimura)\
**Post date:** [August 20, 2018, 1:37am UTC](https://discuss.elastic.co/t/kibana-canvas-windows/142885/10 "2018-08-20T01:37:32Z")

</div>

別の端末で試した際に同じ操作で解決できませんでした。

別の端末では、r4-keisuke にご提示いただいたトピック通りの操作で解決出来ました。

> [@6.2.0 starts with error](https://discuss.elastic.co/t/6-2-0-starts-with-error/118706/14):
>
> Maybe I figured this out. I think you have to run this from PowerShell not the command line. At least on my Windows 2016 Server, it wouldn't work until I used PowerShell to launch it. My guess would be that the optimize is creating paths that are too deep for the standard command prompt to handle.

両社の違いですが、最初に事象が発生したわたしの環境には、  
NodeJSがインストールされていて、  
後の環境には、インストールされていませんでした。

Kibana のバッチを見ると、パス上に NodeJS が見つかったら  
Kibana に同梱されている NodeJS でなく、そちらを使うよう実装されていて  
それがややこしさを助長しているようです。

正直、同梱しているものをあえて使わないという  
実装の意図が理解できないです（バグ？）。。

なので、先に私が書いた対処は、

"NodeJS がインストール済みの環境に Canvas プラグインを入れる場合の対処"

> [@Kibana Canvas が Windows版 で動きません。](https://discuss.elastic.co/t/kibana-canvas-windows/142885/9):
>
> パターンを試すのに時間かかってしまいました。 ほぼ私の環境固有の問題だったのですが、 c:\elastic\kibana\6.3.2\ にインストールし、 環境変数 KIBANA\_HOME=c:\elastic\kibana\6.3.2 を定義して パスに %KIBANA\_HOME%\bin を追加して、bin 以下のバッチファイルを 素でたたけるようにしていました。 一通り確認しましたが、Powershell とか利用せずとも カレントディレクトリが bin ディレクトリの状態で プラグインをインストールさえすれば、正しく動くということが分かりました。 逆にフルパス指定しても、カレントディレクトリが bin でない状態で プラグインをインストールすると上記のエラーが発生しました。

になります。

---

_[View the full topic](https://discuss.elastic.co/t/kibana-canvas-windows/142885)._
