Last-modified: 2016-01-22 (金) 09:10:42
node.js/ffiのインストール

概要

node.jsプロジェクトにffi(Foreign function interface)をインストールします。
他のnpmパッケージと異なりpython2が必要です。

手順

  1. システムにpython2系が入っていない場合、インストールします。
    Everything is expanded.Everything is shortened.
      1
    
     
    
    choco install python2
  2. npmで使うpythonのパスをpython2系のものにします。
    Everything is expanded.Everything is shortened.
      1
    
     
    
    npm config set python <python2系のexeパス>
  3. VisualStudio上のプロジェクト上で、ほかのnpmパッケージのインストールと同様の手順でインストールできます。
    WS000000.PNG

検証時の環境