Skip to content

Instantly share code, notes, and snippets.

@mitsuruog
Last active December 30, 2015 08:09
Show Gist options
  • Save mitsuruog/7801119 to your computer and use it in GitHub Desktop.
Save mitsuruog/7801119 to your computer and use it in GitHub Desktop.
node-easymockをwindowsにインストールする

Thanks!! https://github.com/cap-nakamura/test/wiki/Install-easymock-version-0.2.1

Install easymock version 0.2.5

https://github.com/CyberAgent/node-easymock/

準備

easymock は、node-sqlite3 と node-gyp を使用しています。 Windows 7 で node-gyp を利用するためには、Python と VC++ が必要です。

Python v2.7.3

Visual Studio 2013 Express for Windows Desktop

2012じゃないとダメかも。

http://www.microsoft.com/en-us/download/confirmation.aspx?id=36020

Visual Studio は、インストール完了後、この製品を30 日間ご試用いただけます。30日以降も引き続き利用する場合は、無償のプロダクトキーを入手してご登録いただく必要があります。 むむむ ... 昔のように win32 sdk だけじゃダメなのか ...

参考)

https://github.com/TooTallNate/node-gyp

https://github.com/developmentseed/node-sqlite3

インストール

このコマンドVS2012の開発者コマンドラインからでないとビルドできないです。

$ git clone https://github.com/CyberAgent/node-easymock.git
$ cd node-easymock
$ npm install
$ npm install . -g

2013年12月4日現在、easymock のバージョンは、0.2.5 です。 sqlite3@2.1.7 を利用しているので、上記 3. でビルドに成功します。 上記 4. で、カレントディレクトリのパッケージをグローバルへインストールすると、 他のディレクトリで easymock を利用できます。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment