node.js - win10系统 npm 安装 node-gyp error cl.exe 找不到
kerberos@0.0.17 install F:\zan\www\node\cms\relax\node_modules\kerberos
(node-gyp rebuild) || (exit 0)
F:\zan\www\node\cms\relax\node_modules\kerberos>if not defined npm_config_node_gyp
(node "E:\serve\nvm\v4.2.0\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
TRACKER : 错误 TRK0005: 未能找到: “CL.exe”。系统找不到指定的文件。
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(356,5): error MSB6006: “CL.exe”已退出,代码为 5。 [F:\zan\www\node\cm
s\relax\node_modules\kerberos\build\kerberos.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 (E:\serve\nvm\v4.2.0\node_modules\npm\node_modules\node-gyp\lib\build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 10.0.10240
gyp ERR! command "e:\\Program Files\\nodejs\\node.exe" "E:\\serve\\nvm\\v4.2.0\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd F:\zan\www\node\cms\relax\node_modules\kerberos
gyp ERR! node -v v4.2.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN optional dep failed, continuing fsevents@1.0.11
阿神2781 天前1767