在Atom中安装platformio-ide-terminal插件缺失Windows SDK 8.1报错求助
问题基本情况
- 身份:Python初学者,从昨日开始学习Python
- 操作场景:在Atom编辑器中安装
platformio-ide-terminal@2.10.0插件 - 当前环境参数:
- Atom版本:1.52.0
- 尝试安装的插件版本:2.10.0
- 最终结果:插件安装直接失败,返回完整报错如下
安装失败完整日志
Installing “platformio-ide-terminal@2.10.0” failed. > node-pty-prebuilt-multiarch@0.9.0-beta21.legacy install C:\Users\***\AppData\Local\Temp\apm-install-dir-2020914-12224-l2dhgv.ez4lo\node_modules\platformio-ide-terminal\node_modules\node-pty-prebuilt-multiarch > prebuild-install || node scripts/install.js C:\Users\***\AppData\Local\Temp\apm-install-dir-2020914-12224-l2dhgv.ez4lo\node_modules\platformio-ide-terminal\node_modules\node-pty-prebuilt-multiarch>if not defined npm_config_node_gyp (node "C:\Users\***\AppData\Local\atom\app-1.52.0\resources\app\apm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\***\AppData\Local\atom\app-1.52.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\x64\PlatformToolsets\v140\Toolset.targets(36,5): error MSB8036: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution". [C:\Users\***\AppData\Local\Temp\apm-install-dir-2020914-12224-l2dhgv.ez4lo\node_modules\platformio-ide-terminal\node_modules\node-pty-prebuilt-multiarch\build\conpty.vcxproj] C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\x64\PlatformToolsets\v140\Toolset.targets(36,5): error MSB8036: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution". [C:\Users\***\AppData\Local\Temp\apm-install-dir-2020914-12224-l2dhgv.ez4lo\node_modules\platformio-ide-terminal\node_modules\node-pty-prebuilt-multiarch\build\conpty_console_list.vcxproj] C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\x64\PlatformToolsets\v140\Toolset.targets(36,5): error MSB8036: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution". [C:\Users\***\AppData\Local\Temp\apm-install-dir-2020914-12224-l2dhgv.ez4lo\node_modules\platformio-ide-terminal\node_modules\node-pty-prebuilt-multiarch\build\deps\winpty\src\winpty.vcxproj] C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\x64\PlatformToolsets\v140\Toolset.targets(36,5): error MSB8036: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution". [C:\Users\***\AppData\Local\Temp\apm-install-dir-2020914-12224-l2dhgv.ez4lo\node_modules\platformio-ide-terminal\node_modules\node-pty-prebuilt-multiarch\build\deps\winpty\src\winpty-agent.vcxproj] prebuild-install WARN install No prebuilt binaries found (target=6.1.12 runtime=electron arch=x64 libc= platform=win32) 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:\Users\***\AppData\Local\atom\app-1.52.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:200:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12) gyp ERR! System Windows_NT 10.0.18363 gyp ERR! command "C:\\Users\\***\\AppData\\Local\\atom\\app-1.52.0\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\indra\\AppData\\Local\\atom\\app-1.52.0\\resources\\app\\apm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\***\AppData\Local\Temp\apm-install-dir-2020914-12224-l2dhgv.ez4lo\node_modules\platformio-ide-terminal\node_modules\node-pty-prebuilt-multiarch gyp ERR! node -v v12.4.0 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\indra\AppData\Local\Temp\apm-install-dir-2020914-12224-l2dhgv.ez4lo\package.json' npm WARN apm-install-dir-2020914-12224-l2dhgv.ez4lo No description npm WARN apm-install-dir-2020914-12224-l2dhgv.ez4lo No repository field. npm WARN apm-install-dir-2020914-12224-l2dhgv.ez4lo No README data npm WARN apm-install-dir-2020914-12224-l2dhgv.ez4lo No license field. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-pty-prebuilt-multiarch@0.9.0-beta21.legacy install: `prebuild-install || node scripts/install.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-pty-prebuilt-multiarch@0.9.0-beta21.legacy install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\***\.atom\.apm\_logs\2020-10-14T12_05_28_400Z-debug.log
报错根因
- 直接触发错误:MSBuild抛出
MSB8036错误,提示本地系统缺失Windows 8.1版本SDK,无法完成C++项目编译 - 前置流程问题:插件依赖的
node-pty-prebuilt-multiarch包,未匹配到当前Atom内置Electron版本(6.1.12)的x64架构预编译二进制文件,自动切换为本地源码编译模式,因环境不满足要求直接中断
解决路径
- 优先推荐零配置方案:跳过需要编译的内置终端插件,直接在Atom设置中绑定系统自带的PowerShell、Windows Terminal作为外部启动项,可完全覆盖Python学习阶段的终端使用需求,无需额外配置编译环境
- 版本适配方案:在Atom插件市场选择兼容1.52.0版本Atom的旧版终端插件,优先挑选预编译包齐全、无需本地编译的版本安装
- 硬需求适配方案:如果必须使用当前版本的
platformio-ide-terminal,需安装Windows 8.1 SDK、Visual Studio 2015的C++桌面开发工具集,配置完成后重启Atom再重试安装 - 手动绕开编译方案:根据报错日志标注的版本匹配参数(Electron 6.1.12、x64架构、win32平台),下载对应版本的node-pty预编译包,手动放置到插件的node_modules对应目录,跳过本地编译流程
内容的提问来源于stack exchange,提问作者Indranil
相关产品推荐
相关产品推荐

