跟踪器:错误TRK0005:无法find:“CL.exe”

我觉得我已经尝试了一切。

  • 我已经安装和卸载了每个单一版本的Visual Studio(从2010年到2017年)

  • 我试图安装用于windows c ++的构build工具

  • 我已经卸载node.js并重新安装。

但是不pipe我做什么我仍然得到错误:

TRACKER : error TRK0005: Failed to locate: "CL.exe". 

我已经尝试了每一个“解决scheme”,我可以findgoogle讨论或描述这个问题。

当我运行npm install

我得到以下错误:

  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) 

谁能告诉我如何解决这个问题?

我的操作系统是“Windows 10 pro”。

CL.exe是VS的命令行版本。 我会看看几件事情:

  1. 当你安装VS是CL安装可选,如果是这样的话?
  2. 环境variables。 请参阅https://msdn.microsoft.com/en-us/library/kezkeayy.aspx

我试图安装Visual Studio 2015.但是,我看到这个错误。 后来我发现我必须select自定义安装,在安装过程中selectVisual C ++。