There is no Windows 10 SDK installed at ${windowsSDKDir}?

实际上本地已经安装了 Windows 10 SDK

正确的目录是 D:\Program Files (x86)\Windows Kits\10

但是报错告诉我在C盘没找到, 请问该如何配置呢?

***\vscode\node_modules\@vscode\gulp-electron\src\win32.js:23
    throw `There is no Windows 10 SDK installed at ${windowsSDKDir}.`;
    ^
There is no Windows 10 SDK installed at C:\Program Files (x86)\Windows Kits\10\bin\.
(Use `node --trace-uncaught ...` to show where the exception was thrown)
阅读 1.2k
1 个回答
新手上路,请多包涵

找到

vscode\node_modules\@vscode\gulp-electron\src\win32.js
let windowsSDKDir= "C:\\Program Files (x86)\\Windows Kits\\10\\bin";

改为

let windowsSDKDir= "D:\\Program Files (x86)\\Windows Kits\\10\\bin";
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题
logo
Microsoft
子站问答
访问
宣传栏