gaze icon indicating copy to clipboard operation
gaze copied to clipboard

Can't find "msbuild.exe"

Open robatron opened this issue 10 years ago • 5 comments

Hi there,

This Just started happening this evening. All of my developers are getting the following error when they attempt to install gaze:

$ npm install gaze
npm http GET https://registry.npmjs.org/gaze
npm http 304 https://registry.npmjs.org/gaze
npm http GET https://registry.npmjs.org/absolute-path/0.0.0
npm http GET https://registry.npmjs.org/nextback
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/nan
npm http GET https://registry.npmjs.org/globule
npm http 304 https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/absolute-path/0.0.0
npm http 304 https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/globule
npm http 304 https://registry.npmjs.org/nextback
npm http GET https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/glob
npm http 304 https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/sigmund
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/lru-cache
npm http 304 https://registry.npmjs.org/inherits

> [email protected] install c:\<redacted>\node_modules\gaze
> node-gyp rebuild


c:\<redacted>\node_modules\gaze>node "c:\Program Files\nodejs\node_modules\npm\bin\
gyp ERR! build error
gyp ERR! stack Error: Can't find "msbuild.exe". Do you have Microsoft Visual Studio C++ 2008+ installed
gyp ERR! stack     at findMsbuild (c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\b
gyp ERR! stack     at c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:103:1
gyp ERR! stack     at F (c:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:43:25)
gyp ERR! stack     at E (c:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:46:29)
gyp ERR! stack     at c:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:57:16
gyp ERR! stack     at Object.oncomplete (fs.js:107:15)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "c:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\nod
gyp ERR! cwd c:\<redacted>\node_modules\gaze
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the gaze 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 their info via:
npm ERR!     npm owner ls gaze
npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\node_modules\\npm\\b
npm ERR! cwd c:\<redacted>
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     c:\<redacted>\npm-debug.log

robatron avatar Apr 17 '14 03:04 robatron

****\node_modules\gulp\node_modules\vinyl-fs\node_modules\glob-watcher\node_modules\gaze>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-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.
  main.cc
  handle_map.cc
  pathwatcher_win.cc
  common.cc
..\src\pathwatcher_win.cc(318): error C3861: 'CancelIoEx': identifier not found [****\node_modules\gulp\node_modules\vinyl-fs\node_modules\glob-watcher\node_modules\gaze\build\pathwatcher.v
cxproj]
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:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd ****\node_modules\gulp\node_modules\vinyl-fs\node_modules\glob-watcher\node_modules\gaze
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok

python and vs studio express are installed

alex6o avatar Apr 17 '14 09:04 alex6o

Sorry for the issues, please rollback to 0.5.1. I'm going to work on packaging the builds for each platform into the package to avoid having users to compile them.

shama avatar Apr 17 '14 17:04 shama

@shama how's the progress on the builds packaging? I've just noticed that I could rollback to 0.5.1 after I had already successfully installed Gaze 0.6.4 (by installing MSVS C++ 2012 as required in the node-gyp installation and adding the --msvs_version=2012 flag to the npm install command).

Is there a noticeable performance difference between Gaze 0.5.x and 0.6.x? Any idea when the compiled binaries will ship with Gaze 0.6.x?

Thanks.

UltCombo avatar Jul 02 '14 02:07 UltCombo

@UltCombo Yes I've got the builds packaging done and am now focused on the next big issue #104. I've got a solution in place but it has broken some existing tests. Once those are passing I'll do another release and 0.6 will be more stable.

0.6 is significantly faster in terms of response, startup and far less CPU intensive. Unfortunately no time estimate when I'll get it done. Hopefully soon. Thanks!

shama avatar Jul 02 '14 03:07 shama

@shama thanks for the quick response! I just saw that you've added the pre-built binaries after posting my previous comment, thanks for the awesome work. :)

UltCombo avatar Jul 02 '14 03:07 UltCombo