Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail in VS2017 : TRK0005: Failed to locate: "CL.exe" #771

Closed
himadrinath opened this issue Apr 16, 2017 · 7 comments
Closed

Fail in VS2017 : TRK0005: Failed to locate: "CL.exe" #771

himadrinath opened this issue Apr 16, 2017 · 7 comments
Labels

Comments

@himadrinath
Copy link

`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! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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`

@himadrinath himadrinath changed the title Fail in vs 2017 : TRK0005: Failed to locate: "CL.exe" Fail in VS2017 : TRK0005: Failed to locate: "CL.exe" Apr 16, 2017
@lovell
Copy link
Owner

lovell commented Apr 17, 2017

Hello, did you see #341

@himadrinath
Copy link
Author

@lovell two different machine running in same configration

testing

@lovell
Copy link
Owner

lovell commented 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

@himadrinath
Copy link
Author

himadrinath commented Apr 17, 2017

@lovell i did every thing because i run the npm config set msvs_version 2017 command thats why it showing KeyError: '2017' if i remove it it will show another error
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framew ork 2.0 SDK, 2) install Microsoft Visual Studio 2005 or 3) add the location of the component to the system path if it i s installed elsewhere. [C:\Users\himad\Desktop\testProject\node_modules\sharp\build\binding.sln]
and if i run it with npm config set msvs_version 2015 if will show a another error

error MSB4019: The imported proj ect "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and t hat the file exists on disk.

i install all the component needed to run like here it says
nodejs/node-gyp#1144

but still not working in this pc

@lovell
Copy link
Owner

lovell commented Apr 18, 2017

Thanks for the update. Given it works on one machine but not another, this is unlikely to be a problem with sharp. I can see you're commenting on the linked node-gyp issue so I'll close this.

@lovell lovell closed this as completed Apr 18, 2017
@refack
Copy link

refack commented Apr 18, 2017

Bug is in [email protected] incompatible with super new SDKs 10.0.15063.Desktop
See edit in nodejs/node-gyp#1144 (comment)

@sigma67
Copy link

sigma67 commented Oct 1, 2019

npm i node-gyp --global
Fixed the issue for me by installing the latest node-gyp version (5.0.4).

Repository owner locked and limited conversation to collaborators Oct 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants