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

Build error on Windows 10 - TRK0005: Failed to locate: "CL.exe" #341

Closed
aayushkapoor206 opened this issue Jan 21, 2016 · 12 comments
Closed
Labels

Comments

@aayushkapoor206
Copy link

Whenever I try npm install sharp, I get the error:

TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified.
@lovell
Copy link
Owner

lovell commented Jan 21, 2016

Hello, which version of Visual Studio are you using? Perhaps check you have all the Windows prerequisites for node-gyp.

https://github.com/nodejs/node-gyp#installation

@aayushkapoor206
Copy link
Author

I'm using VS Community 2015 and have set GYP_MSVS_VERSION=2015

@lovell
Copy link
Owner

lovell commented Jan 21, 2016

Others are reporting similar experiences when compiling native modules with this combination, so I suspect this problem is not specific to sharp.

http://stackoverflow.com/search?tab=newest&q=TRK0005%20%22windows%2010%22

https://twitter.com/despair/status/679136039303278593

@aayushkapoor206
Copy link
Author

Haha! The twitter status. 😆

It finally worked after I manually installed Visual C++
https://msdn.microsoft.com/en-IN/library/60k1461a.aspx

I had originally skipped:

Install Visual Studio Community 2015 Edition. (Custom Install, Select Visual C++ during the installation)

@lovell
Copy link
Owner

lovell commented Jan 21, 2016

Great, glad you got it working.

@aayushkapoor206
Copy link
Author

It plays nicely with npm install sharp but when I run it using a build script, the result is 💀 💀 💀

line 402, in SelectVisualStudioVersion
   versions = _DetectVisualStudioVersions(version_map[version], 'e' in version)
   KeyError: '2015'

@lovell
Copy link
Owner

lovell commented Jan 21, 2016

That looks like an error from the Python code in node-gyp. I think you'll need at least node-gyp v2.0.0 for MSVC 2015 support.

@aayushkapoor206
Copy link
Author

I am using meteor 1.2.1 that comes with node 0.10.40 and npm 1.4.9 using meteorhacks:npm to install sharp. Works great on OS X and Ubuntu but on Windows, after updating node-gyp to latest, I get
ERROR: ARM and 32-bit systems require manual installation

@lovell
Copy link
Owner

lovell commented Jan 22, 2016

Only 64-bit Windows is supported - you'll probably need to ensure you're using the x86_64 version of Meteor.

@aayushkapoor206
Copy link
Author

Meteor does not have an option for 64-bit installation. It runs 32-bit version of node. Is there any workaround?

@lovell
Copy link
Owner

lovell commented Jan 22, 2016

sharp v0.11.4 was the last version to support 32-bit node.exe on Windows. libvips v8.1.1 was the last version to provide pre-built 32-bit binaries.

@aayushkapoor206
Copy link
Author

Thanks for all the support @lovell! Really appreciate it.
Meteor might eventually use 64-bit node in later updates. Till then I'll stick to v0.11.4 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants