gyp ERR! stack Error: `C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\msbuild.exe` failed with e

idea 安装umi环境报错

错误信息

Building the projects in this solution one at a time. To enable parallel build, please add the \"/m\" switch.
MSBUILD : error MSB3428: δ�ܼ��� Visual C++ �����VCBuild.exe����Ҫ��������⣬1) ��װ .NET Framework 2.0 SDK��2) ��װ Microsoft Visual Studio 2005���� 3) ������������װ��������λ�ã�
�뽫��λ����ӵ�ϵͳ·���С� [C:\\Users\\MrDuan\\AppData\\Local\\Yarn\\Data\\global\\node_modules\\node-pty\\build\\binding.sln]
MSBUILD : error MSB3428: δ�ܼ��� Visual C++ �����VCBuild.exe����Ҫ��������⣬1) ��װ .NET Framework 2.0 SDK��2) ��װ Microsoft Visual Studio 2005���� 3) ������������װ��������λ�ã�
�뽫��λ����ӵ�ϵͳ·���С� [C:\\Users\\MrDuan\\AppData\\Local\\Yarn\\Data\\global\\node_modules\\node-pty\\build\\binding.sln]
MSBUILD : error MSB3428: δ�ܼ��� Visual C++ �����VCBuild.exe����Ҫ��������⣬1) ��װ .NET Framework 2.0 SDK��2) ��װ Microsoft Visual Studio 2005���� 3) ������������װ��������λ�ã�
�뽫��λ����ӵ�ϵͳ·���С� [C:\\Users\\MrDuan\\AppData\\Local\\Yarn\\Data\\global\\node_modules\\node-pty\\build\\binding.sln]
MSBUILD : error MSB3428: δ�ܼ��� Visual C++ �����VCBuild.exe����Ҫ��������⣬1) ��װ .NET Framework 2.0 SDK��2) ��װ Microsoft Visual Studio 2005���� 3) ������������װ��������λ�ã�
�뽫��λ����ӵ�ϵͳ·���С� [C:\\Users\\MrDuan\\AppData\\Local\\Yarn\\Data\\global\\node_modules\\node-pty\\build\\binding.sln]
gyp ERR! build error
gyp ERR! stack Error: `C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (D:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\lib\\build.js:262:23)
gyp ERR! stack     at emitTwo (events.js:126:13)
gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command \"D:\\\\Program Files\\\\nodejs\\\\node.exe\" \"D:\\\\Program Files\\\\nodejs\\\\node_modules\\\\npm\\\\node_modules\\\\node-gyp\\\\bin\\\\node-gyp.js\" \"rebuild\"
gyp ERR! cwd C:\\Users\\MrDuan\\AppData\\Local\\Yarn\\Data\\global\\node_modules\\node-pty
gyp ERR! node -v v8.12.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok"
info This module is OPTIONAL, you can safely ignore this error

gyp ERR! stack Error: `C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\msbuild.exe` failed with exit code: 1

解决办法

1. npm install -g node-gyp
2. npm install --global --production windows-build-tools

你可能感兴趣的:(前端问题解决,msbuild.exe,gyp,ERR!,stack,Error,failed,with,exit,code:,1)