TRACKER: Error TRK0005: Could not find: "CL.exe"
I feel like I've tried everything.
-
I have installed and uninstalled every version of Visual Studio (2010 to 2017)
-
I tried to install build tools used for windows C ++
-
I uninstalled node.js and reinstalled.
BUT ANYTHING I do, I still get the error:
TRACKER : error TRK0005: Failed to locate: "CL.exe".
I have tried to find every "solution" I can find on google
that discusses or describes this problem.
When I ran npm install
I am getting the following error:
TRACKER : error TRK0005: Failed to locate: "CL.exe". file not found
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:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191: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:\xampp\htdocs\myproject\src\node_modules\node-expat
gyp ERR! node -v v6.11.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
learningbank@1.0.0 C:\xampp\htdocs\myproject\src
`-- (empty)
Can anyone tell me how I can fix this problem?
My operating system is "Windows 10 pro".
source to share
CL.exe is the VS command line assembly. Several things I would look at:
- When you install VS, can you install CL if so?
- Environment Variables. See https://msdn.microsoft.com/en-us/library/kezkeayy.aspx
source to share
Make sure the Platform Toolset under Project Properties> General is set to the correct version of Visual Studio that you are using.
In my case, I downloaded a project from GitHub that was configured on Visual Studio 2015 and I am using VS 2017. After changing it, it worked.
You might also want to confirm other settings in properties like "Windows SDK Version" and make sure they are set. You can check your Visual Studio installation under Applications and Features and change.
source to share