LearnBoost/node-canvas — pull request #393 by tapmodo (2014-03-12 20:34:38+00:00)
Title: Update nan dependency from 1.7.0 to 1.7.1

I had impossible problems with `npm install canvas` on a fairly recent Ubuntu, a freshly compiled node v0.11.12, npm v1.4.3, and all the proper dependencies. My problems seemed to start here:
````
In file included from ../src/Canvas.h:22:0,
from ../src/Canvas.cc:7:
../node_modules/nan/nan.h: In function ‘bool _NanGetExternalParts(v8::Handle, const char**, size_t*)’:
../node_modules/nan/nan.h:810:78: error: no matching function for call to ‘v8::Local::New(v8::Handle)’
v8::Local str = v8::Local::New(val.As());
^
../node_modules/nan/nan.h:810:78: note: candidates are:
In file included from ../src/Canvas.h:11:0,
from ../src/Canvas.cc:7:
/home/tapmodo/.node-gyp/0.11.12/deps/v8/include/v8.h:381:29: note: static v8::Local v8::Local::New(v8::Isolate*, v8::Handle) [with T = v8::String]
V8_INLINE static Local New(Isolate* isolate, Handle that);
^
/home/tapmodo/.node-gyp/0.11.12/deps/v8/include/v8.h:381:29: note: candidate expects 2 arguments, 1 provided
/home/tapmodo/.node-gyp/0.11.12/deps/v8/include/v8.h:383:29: note: template static v8::Local v8::Local::New(v8::Isolate*, const v8::Persistent&) [with M = M; T = v8::String]
V8_INLINE static Local New(Isolate* isolate,
^
/home/tapmodo/.node-gyp/0.11.12/deps/v8/include/v8.h:383:29: note: template argument deduction/substitution failed:
In file included from ../src/Canvas.h:22:0,
from ../src/Canvas.cc:7:
../node_modules/nan/nan.h:810:78: note: cannot convert ‘val.v8::Handle::As()’ (type ‘v8::Handle’) to type ‘v8::Isolate*’
v8::Local str = v8::Local::New(val.As());
^
````
**Updating the nan dependency to 0.7.1 solved my problem.**
I had no problems using 0.8.0, also available, but I am not sure what the ramifications of the change are. 0.7.1 was enough to solve my problem. I *do* know that nan 0.7.0 would not allow me to build node-canvas.