Skip to content

ImageMagick-native errors with node-gyp in windows10 #128

@jasminmif

Description

@jasminmif

Im trying to install imagemagick which will be used for another module for printing.
But im getting this error and i cant seem to find a fix for it. I've tried everything what i found in google but still nothing fixed my issue.

  • I have installed Python 2.7
  • visual community 2015 ( with C++ module )
  • ImageMagick-7.0.1-4-Q16-x64-dll

and when i try npm install imagemagick-native i get this bellow:

C:\Users\jasmi\pysoft\sms_nw\nodejs\x64_smsFrontEnd\Py-Soft>npm install imagemagick-native

> imagemagick-native@1.9.2 install C:\Users\jasmi\pysoft\sms_nw\nodejs\x64_smsFrontEnd\Py-Soft\node_modules\imagemagick-native
> node-gyp rebuild


C:\Users\jasmi\pysoft\sms_nw\nodejs\x64_smsFrontEnd\Py-Soft\node_modules\imagemagick-native>if not defined npm_config_node_gyp (node "C:\Users\jasmi\AppData\Roaming\npm\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:\users\jasmi\pysoft\sms_nw\nodejs\x64_smsfrontend\py-soft\node_modules\imagemagick-native\src\imagemagick.h(1): fatal error C1083: Cannot open include file: 'Magick+
+.h': No such file or directory [C:\Users\jasmi\pysoft\sms_nw\nodejs\x64_smsFrontEnd\Py-Soft\node_modules\imagemagick-native\build\imagemagick.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\jasmi\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:100:13)
gyp ERR! stack     at ChildProcess.emit (events.js:185:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\jasmi\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\jasmi\pysoft\sms_nw\nodejs\x64_smsFrontEnd\Py-Soft\node_modules\imagemagick-native
gyp ERR! node -v v5.5.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
npm WARN nw-app@1.0.0 No description
npm WARN nw-app@1.0.0 No repository field.
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\jasmi\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "imagemagick-native"
npm ERR! node v5.5.0
npm ERR! npm  v3.9.2
npm ERR! code ELIFECYCLE

npm ERR! imagemagick-native@1.9.2 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the imagemagick-native@1.9.2 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the imagemagick-native package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs imagemagick-native
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls imagemagick-native
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\jasmi\pysoft\sms_nw\nodejs\x64_smsFrontEnd\Py-Soft\npm-debug.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions