question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

17reactions
lovellcommented, Apr 17, 2017

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:

npm config set msvs_version 2017
2reactions
refackcommented, Apr 18, 2017

Bug is in node-gyp@3.6.0 incompatible with super new SDKs 10.0.15063.Desktop See edit in https://github.com/nodejs/node-gyp/issues/1144#issuecomment-290253041

Read more comments on GitHub >

github_iconTop Results From Across the Web

error TRK0005: Failed to locate: "CL.exe" - Stack Overflow
I went into Visual Studio and created a Visual C++ project, which installed several libraries. npm install worked after that.
Read more >
error TRK0005: Failed to locate: "CL.exe". The system cannot ...
When i build the project in Release mode the follwing error occurs: TRK0005 Failed to locate: "CL.exe". The system cannot find the file...
Read more >
Need help with TRK0005: Failed to locate: "CL.exe - MSDN
Error 1 error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. C:\Desktop\Bomb Catcher Game\TRACKER ...
Read more >
error TRK0005: Failed to locate: "CL.exe". The system cannot ...
This is the code i'm trying to run: #include <iosteam> //# pre-precessor directive int main(void) { return 0; } I previously had the...
Read more >
error trk0005 failed to locate cl.exe visual studio 2017, failed to ...
TRK0005 : Failed to locate: "CL.exe" for all tier 2 code with visual studio 2017 Basic hello worlds and C++ work in VS...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found