Fail in VS2017 : TRK0005: Failed to locate: "CL.exe"
See original GitHub issue`Building the projects in this solution one at a time. To enable parallel build, please add the “/m” switch. TRACKER : error TRK0005: Failed to locate: “CL.exe”. The system cannot find the file specified. [C:\Users\himad\Documen ts\Visual Studio 2017\Projects\BlankNode\BlankNode\node_modules\sharp\build\libvips-cpp.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:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:285:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:194:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “rebuild”
gyp ERR! cwd C:\Users\himad\Documents\Visual Studio 2017\Projects\BlankNode\BlankNode\node_modules\sharp
gyp ERR! node -v v7.9.0
gyp ERR! node-gyp -v v3.6.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sharp@0.17.3 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sharp@0.17.3 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 sharp 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 sharp
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls sharp
npm ERR! There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\himad\AppData\Roaming\npm-cache_logs\2017-04-16T15_03_11_790Z-debug.log`
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
It looks like you’re using node-gyp v3.6.0, which added VS2017 support, so that’s a good start.
KeyError: '2017'
suggests node-gyp can’t detect the version of Visual Studio. Perhaps try forcing it using:Bug is in
node-gyp@3.6.0
incompatible with super new SDKs10.0.15063.Desktop
See edit in https://github.com/nodejs/node-gyp/issues/1144#issuecomment-290253041