【问题标题】:Build failed while installing angular-cli in Windows 7 - Failed at node-sass postinstall在 Windows 7 中安装 angular-cli 时构建失败 - 在 node-sass 安装后失败
【发布时间】:2025-11-27 19:05:01
【问题描述】:

我正在尝试在 Windows 7 中安装 angular-cli。但出现错误 -

Failed at node-sass@3.10.1 post install script 'node scripts/build.js'.

我也收到以下错误。

Toolsets\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\xxx\AppData\Roaming\npm\node
_modules\angular-cli\node_modules\node-sass\build\src\libsass.vcxproj]

有人在 Windows 7 中安装 angular-cli 时遇到过这种问题吗?请帮助解决这个问题。谢谢。

【问题讨论】:

    标签: windows-7 angular-cli node-sass


    【解决方案1】:

    我认为问题已在 angular-cli 中得到解决。现在我可以在 Windows 7 上安装和使用它。将其标记为已回答。

    【讨论】: