节点1上的项目“G:\ user \ ionic \ me \ node_modules \ node-sass \ build \ binding.sln”(默认目标) . ValidateSolutionConfiguration:构建解决方案配置“Release | x64” . 项目“G:\ user \ ionic \ me \ node_modules \ node-sass \ build \ binding.sln”(1)正在构建“G:\ user \ ionic \ me \ node_modules \ node-sass \ build \ binding.vcxproj” . metaproj“(2)在节点1上(默认目标) . 项目“G:\ user \ ionic \ me \ node_modules \ node-sass \ build \ binding.vcxproj.metaproj”(2)正在构建“G:\ user \ ionic \ me \ node_modules \ node-sass \ build \ src \ libsass.vcxproj“(3)在节点1上(默认目标) . C:\ Program Files(x86)\ MSBuild \ Microsoft.Cpp \ v4.0 \ V140 \ Platforms \ x64 \ PlatformToolsets \ v140 \ Toolset.targets(36,5):错误MSB8036:找不到Windows SDK版本8.1 . 安装所需版本的Windows SDK或更改项目属性页中的SDK版本,或右键单击解决方案并选择“重新定位解决方案” . [G:\ user \ ionic \ me \ node_modules \ node-sass \ build \ src \ libsass.vcxproj]完成构建项目“G:\ user \ ionic \ me \ node_modules \ node-sass \ build \ src \ libsass.vcxproj “(默认目标) - 失败 .

完成构建项目“G:\ user \ ionic \ me \ node_modules \ node-sass \ build \ binding.vcxproj.metaproj”(默认目标) - F AILED .

完成构建项目“G:\ user \ ionic \ me \ node_modules \ node-sass \ build \ binding.sln”(默认目标) - 失败 .

Build 失败 .

“G:\ user \ ionic \ me \ node_modules \ node-sass \ build \ binding.sln”(默认目标)(1) - >“G:\ user \ ionic \ me \ node_modules \ node-sass \ build \ binding .vcxproj.metaproj“(默认目标)(2) - >”G:\ user \ ionic \ me \ node_modules \ node-sass \ build \ src \ libsass.vcxproj“(默认目标)(3) - >(Desktop_PlatformPrepareForBuild target ) - > C:\ Program Files(x86)\ MSBuild \ Microsoft.Cpp \ v4.0 \ V140 \ Platforms \ x64 \ PlatformToolsets \ v140 \ Toolset.targets(36,5):err或MSB8036:Windows SDK版本8.1没找到 . 安装所需版本的Windows SDK或在项目属性页中更改SDK版本,或右键单击解决方案并选择“重新定位解决方案” . [G:\ user \ ion ic \ me \ node_modules \ node-sass \ build \ src \ libsass.vcxproj]

0 Warning(s)
1 Error(s)

时间流逝00:00:00.48 gyp ERR!构建错误gyp ERR!堆栈错误: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe 失败,退出代码:1 gyp ERR!在ChildProcess.onExit堆栈(G:\ user \ ionic \ me \ node_modules \ node-gyp \ lib \ build.js:262:23)gyp ERR!在ChildProcess.emit堆栈(events.js:182:13)gyp ERR! Process.ChildProcess._handle.onexit(internal / child_process.js:237:12)gyp ERR!系统Windows_NT 10.0.15063 gyp ERR!命令"C:\Program Files\nodejs\node.exe" "G:\user\ionic\me\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd G:\ user \ ionic \ me \ node_modules \ node-sass gyp ERR! node -v v10.5.0 gyp ERR! node-gyp -v v3.7.0 gyp ERR!不行构建失败npm WARN @ angular / platform-server @ 2.2.1需要@ angular / core @ 2.2.1的对等,但没有安装 . 您必须自己安装对等依赖项 . npm WARN @ angular / platform-server @ 2.2.1需要@ angular / common @ 2.2.1的对等体,但没有安装 . 您必须自己安装对等依赖项 . npm WARN @ angular / platform-server @ 2.2.1需要@ angular / compiler @ 2.2.1的对等体,但没有安装 . 您必须自己安装对等依赖项 . npm WARN @ angular / platform-server @ 2.2.1需要@ angular / platform-browser @ 2.2.1的同行,但没有安装 . 您必须自己安装对等依赖项 . npm WARN @ ionic / app-scripts @ 1.0.0需要@ angular / tsc-wrapped @ *的对等体,但是没有安装 . 您必须自己安装对等依赖项 . npm WARN可选SKIPPING OPTIONAL DEPENDENCY:fsevents@1.2.4(node_modules \ fsevents):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY:不支持的fsevents@1.2.4平台:想要{"os":"darwin","arch":"any"}(当前:{"os": "win32","arch":"x64"})

错误的ERR!代码ELIFECYCLE npm ERR!错误1 npm ERR! node-sass@3.10.1 postinstall: node scripts/build.js npm ERR!退出状态1 npm ERR!错误的ERR!在node-sass@3.10.1 postinstall脚本失败 . 错误的ERR!这可能不是npm的问题 . 上面可能有额外的日志记录输出 .

错误的ERR!可以在以下位置找到此运行的完整日志:npm ERR! C:\用户\用户\应用程序数据\漫游\ NPM-cache_logs \ 2018-08-01T07_15_34_679Z-的debug.log

我在MSBuild.exe上遇到了这个错误,窗口为10.我尝试安装npm install -g windows-build-tools但反复失败 . 但现在我在本地文件夹中运行npm install --production windows-build-tools工作 .