Gyp ERR! and npm ERR! while Hydrogen package


#1

Hi

I am getting a gyp ERR! and npm ERR! error when trying to install Hydrogen package:

Below is the error log (I was unable to find the npm-debug.log file in my TEMP folder, hence pasting the message here):

Installing “Hydrogen@2.1.0” failed.Hide output…

> canvas@1.6.7 install C:\Users\<username>\AppData\Local\Temp\apm-install-dir-1171018-5208-9w8aq7.323xr\node_modules\Hydrogen\node_modules\canvas
> node-gyp rebuild


C:\Users\<username>\AppData\Local\Temp\apm-install-dir-1171018-5208-9w8aq7.323xr\node_modules\Hydrogen\node_modules\canvas>if not defined npm_config_node_gyp (node "C:\Users\<username>\AppData\Local\atom\app-1.22.1\resources\app\apm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Users\<username>\AppData\Local\atom\app-1.22.1\resources\app\apm\bin\\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) 
Warning: Missing input files:
C:\GTK\bin\zlib1.dll
C:\GTK\bin\libexpat-1.dll
C:\GTK\bin\libpng14-14.dll
C:\GTK\bin\libcairo-2.dll
C:\GTK\bin\libfontconfig-1.dll
C:\GTK\bin\libfreetype-6.dll
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Users\<username>\AppData\Local\Temp\apm-install-dir-1171018-5208-9w8aq7.323xr\node_modules\Hydrogen\node_modules\canvas\build\canvas.vcxproj(20,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

> zeromq@4.6.0 install C:\Users\<username>\AppData\Local\Temp\apm-install-dir-1171018-5208-9w8aq7.323xr\node_modules\Hydrogen\node_modules\zeromq
> node scripts/prebuild-install.js || (node scripts/preinstall.js && node-gyp rebuild)


prebuild-install info begin Prebuild-install version 2.3.0
prebuild-install info looking for local prebuild @ prebuilds\zeromq-v4.6.0-electron-v53-win32-ia32.tar.gz
prebuild-install info looking for cached prebuild @ C:\Users\<username>\.atom\.apm\_prebuilds\https-github.com-zeromq-zeromq.js-releases-download-v4.6.0-zeromq-v4.6.0-electron-v53-win32-ia32.tar.gz
prebuild-install http request GET https://github.com/zeromq/zeromq.js/releases/download/v4.6.0/zeromq-v4.6.0-electron-v53-win32-ia32.tar.gz
prebuild-install WARN install socket hang up

Downloading libzmq for Windows
Download finished

C:\Users\<username>\AppData\Local\Temp\apm-install-dir-1171018-5208-9w8aq7.323xr\node_modules\Hydrogen\node_modules\zeromq>if not defined npm_config_node_gyp (node "C:\Users\<username>\AppData\Local\atom\app-1.22.1\resources\app\apm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Users\<username>\AppData\Local\atom\app-1.22.1\resources\app\apm\bin\\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) 
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Users\<username>\AppData\Local\Temp\apm-install-dir-1171018-5208-9w8aq7.323xr\node_modules\Hydrogen\node_modules\zeromq\build\zmq.vcxproj(20,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
C:\Users\<username>\AppData\Local\Temp\apm-install-dir-1171018-5208-9w8aq7.323xr
`-- (empty)


gyp ERR! build error 
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\<username>\AppData\Local\atom\app-1.22.1\resources\app\apm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Users\\<username>\\AppData\\Local\\atom\\app-1.22.1\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\<username>\\AppData\\Local\\atom\\app-1.22.1\\resources\\app\\apm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\<username>\AppData\Local\Temp\apm-install-dir-1171018-5208-9w8aq7.323xr\node_modules\Hydrogen\node_modules\canvas
gyp ERR! node -v v6.9.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
gyp ERR! build error 
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\<username>\AppData\Local\atom\app-1.22.1\resources\app\apm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Users\\<username>\\AppData\\Local\\atom\\app-1.22.1\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\<username>\\AppData\\Local\\atom\\app-1.22.1\\resources\\app\\apm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\<username>\AppData\Local\Temp\apm-install-dir-1171018-5208-9w8aq7.323xr\node_modules\Hydrogen\node_modules\zeromq
gyp ERR! node -v v6.9.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\<username>\AppData\Local\Temp\apm-install-dir-1171018-5208-9w8aq7.323xr\package.json'
npm WARN react-rangeslider@2.2.0 requires a peer of react@^0.14.0 || ^15.0.0 but none was installed.
npm WARN react-json-tree@0.10.9 requires a peer of react@^15.0.0 but none was installed.
npm WARN react-json-tree@0.10.9 requires a peer of react-dom@^15.0.0 but none was installed.
npm WARN commonmark-react-renderer@4.3.4 requires a peer of commonmark@^0.27.0 || ^0.26.0 || ^0.24.0 but none was installed.
npm WARN apm-install-dir-1171018-5208-9w8aq7.323xr No description
npm WARN apm-install-dir-1171018-5208-9w8aq7.323xr No repository field.
npm WARN apm-install-dir-1171018-5208-9w8aq7.323xr No README data
npm WARN apm-install-dir-1171018-5208-9w8aq7.323xr No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: canvas@1.6.7 (node_modules\Hydrogen\node_modules\canvas):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: canvas@1.6.7 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Users\\<username>\\AppData\\Local\\atom\\app-1.22.1\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\<username>\\AppData\\Local\\atom\\app-1.22.1\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\<username>\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\<username>\\.atom\\.apmrc" "install" "C:\\Users\\<username>\\AppData\\Local\\Temp\\d-1171018-5208-1vyenm7.5sgaatt9\\package.tgz" "--runtime=electron" "--target=1.6.15" "--arch=ia32" "--global-style" "--msvs_version=2010"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! zeromq@4.6.0 install: `node scripts/prebuild-install.js || (node scripts/preinstall.js && node-gyp rebuild)`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the zeromq@4.6.0 install script 'node scripts/prebuild-install.js || (node scripts/preinstall.js && 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 zeromq package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node scripts/prebuild-install.js || (node scripts/preinstall.js && node-gyp rebuild)
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs zeromq
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls zeromq
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\<username>\AppData\Local\Temp\apm-install-dir-1171018-5208-9w8aq7.323xr\npm-debug.log
npm ERR! code 1


Some additional information:

  1. OS is Windows 7 x64
  2. Trying to install the above package from the Settings page
  3. Atom version 1.22.1

Below are some of the restrictions I am facing in terms of troubleshooting:

  1. This is on my work laptop, so I do not have admin rights, and atom is installed by the admin for my username (rather than the computer itself)
  2. Work laptop also means - I cannot turn off my anti-virus (McAfee) - which I found in some forums was prescribed as a solution

Any help/guidance with the above is appreciated. Thanks in advance!


#2

Do you have a directory called C:\GTK\bin?

It feels like the most telling part of that error message is the bit about C:\Microsoft.Cpp.Default.props, but since I don’t know anything about zeromq or node-gyp except that node-gyp has really questionable support for Windows (it works, but you have to set things up to get it to work), I can’t tell you what that means. Can you tell me anything about whether/how the Microsoft C++ build tools are set up on your machine?