Несоответствие версии модуля. Ожидал 43, получил 14. при запуске примера программы node-imagemagick-native

Я установил node-imagemagick-native с помощью команды npm install imagemagick-native Модуль успешно установлен со следующим журналом

C:\Users\xz\Downloads\test\examples>npm install imagemagick-native

> [email protected] install C:\Users\xz\Downloads\test\examples\node_modules\imagemagick-native
> node-gyp rebuild


C:\Users\xz\Downloads\test\examples\node_modules\imagemagick-native>if not defined npm_config_node_gyp (node "C:\Users\xz\AppData\Roaming\nvm\v0.12.7\node_modules\npm\bin
\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  imagemagick.cc
c:\program files\imagemagick-6.8.5-q16\include\magick/pixel-accessor.h(163): warning C4244: 'argument' : conversion from 'double' to 'const MagickCore::MagickRealType',
possible loss of data [C:\Users\xz\Downloads\test\examples\node_modules\imagemagick-native\build\imagemagick.vcxproj]
C:\Program Files\Microsoft Visual Studio 10.0\VC\include\xlocale(323): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [C:
\Users\xz\Downloads\test\examples\node_modules\imagemagick-native\build\imagemagick.vcxproj]
..\src\imagemagick.cc(131): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [C:\Users\xz\Downloads\test\examples\node_modu
les\imagemagick-native\build\imagemagick.vcxproj]
..\src\imagemagick.cc(304): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [C:\Users\xz\Downloads\test\examples\node_modu
les\imagemagick-native\build\imagemagick.vcxproj]
..\src\imagemagick.cc(344): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [C:\Users\xz\Downloads\test\examples\node_modu
les\imagemagick-native\build\imagemagick.vcxproj]
..\src\imagemagick.cc(364): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [C:\Users\xz\Downloads\test\examples\node_modu
les\imagemagick-native\build\imagemagick.vcxproj]
..\src\imagemagick.cc(405): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [C:\Users\xz\Downloads\test\examples\node_modu
les\imagemagick-native\build\imagemagick.vcxproj]
..\src\imagemagick.cc(572): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [C:\Users\xz\Downloads\test\examples\node_modu
les\imagemagick-native\build\imagemagick.vcxproj]
..\src\imagemagick.cc(742): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [C:\Users\xz\Downloads\test\examples\node_modu
les\imagemagick-native\build\imagemagick.vcxproj]
..\src\imagemagick.cc(817): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [C:\Users\xz\Downloads\test\examples\node_modu
les\imagemagick-native\build\imagemagick.vcxproj]
..\src\imagemagick.cc(890): warning C4344: behavior change: use of explicit template arguments results in call to 'v8::Local<T> NanNew<v8::String,char*>(A0)' [C:\Users\x
z\Downloads\test\examples\node_modules\imagemagick-native\build\imagemagick.vcxproj]
          with
          [
              T=v8::String,
              A0=char *
          ]
          but the regular function 'v8::Local<T> NanNew(const char *)' is a better match
          with
          [
              T=v8::String
          ]
          if you expect 'v8::Local<T> NanNew(const char *)' to be called then you need to make it an explicit specialization
          with
          [
              T=v8::String
          ]
  win_delay_load_hook.c
     Creating library C:\Users\xz\Downloads\test\examples\node_modules\imagemagick-native\build\Release\imagemagick.lib and object C:\Users\xz\Downloads\test\examples\no
  de_modules\imagemagick-native\build\Release\imagemagick.exp
  Generating code
  Finished generating code
  imagemagick.vcxproj -> C:\Users\xz\Downloads\test\examples\node_modules\imagemagick-native\build\Release\\imagemagick.node
[email protected] C:\Users\xz\Downloads\test\examples
└── [email protected]  extraneous


C:\Users\xz\Downloads\test\examples>

Теперь после установки я попытался запустить пример программы

var imagemagick = require('imagemagick-native');
imagemagick.writeFileSync('image.jpg', imagemagick.convert({
    srcData: fs.readFileSync('before.jpg'),
    format: 'PNG',
    quality: 100 // (best) to 1 (worst)
}));

Но получил следующую ошибку...

введите здесь описание изображения

Пожалуйста, изучите вопрос и обязуйтесь.


person Kamaldeep Singh    schedule 22.12.2015    source источник
comment
Взгляните на этот вопрос/ответ: stackoverflow.com/questions/33602935/   -  person Vaviloff    schedule 22.12.2015
comment
Что именно не работает? Также: какая у вас операционная система? У вас установлен и работает ImageMagick?   -  person Vaviloff    schedule 23.12.2015
comment
Да, я обновил журналы установки в этом посте. Как вы думаете, это правильные журналы? Моя операционная система в Windows 7 x32   -  person Kamaldeep Singh    schedule 24.12.2015
comment
Вы пытались перестроить модуль с помощью nw-gyp, как это предлагается в связанном ответе?   -  person Vaviloff    schedule 24.12.2015
comment
Да, я пересобираю проект из этого каталога .\node_modules\imagemagick-native, выполнив эту команду nw-gyp reboot --target=0.12.3. Сборка удалась. Но на этот раз запуск примера кода дал мне эту ошибку в консоли браузера Node-webkit. Uncaught TypeError: undefined не является функцией   -  person Kamaldeep Singh    schedule 05.01.2016
comment
Вы решили рассматриваемую проблему? Если ошибка несоответствия исчезла, то, вероятно, да. Что вызывает ошибку undefined is not a function? (Источник отображается в консоли)   -  person Vaviloff    schedule 08.01.2016
comment
Нет, проблема еще не решена. Я не знаю, как он генерируется. Я только что упомянул и разместил все шаги и журналы. Но проблема все та же.   -  person Kamaldeep Singh    schedule 09.01.2016