Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSBUILD : error MSB4132: The tools version "2.0" is unrecognized. Available tools versions are "4.0". #789

Closed
tboevil opened this issue Apr 28, 2017 · 3 comments
Labels

Comments

@tboevil
Copy link

tboevil commented Apr 28, 2017

I try to reinstall NPM, node, SDK, vc++build, but still not resolved

It's my log:
MSBUILD : error MSB4132: The tools version "2.0" is unrecognized. Available tools versions are"14.0". "4.0".
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\liang\AppData\Roaming\npm\node_modules\cnpm\node_modules_node-gyp@3.6.0@node-gyp\lib\build.js:285:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\soft\node\node.exe" "C:\Users\liang\AppData\Roaming\npm\node_modules\cnpm\node_modules\_npminstall@2.29.2@npminstall\node-gyp-bin\node-gyp.js" "rebuild"
gyp ERR! cwd D:\school\tools\node_modules_sharp@0.17.3@sharp
gyp ERR! node -v v6.10.2
gyp ERR! node-gyp -v v3.6.0
gyp ERR! not ok
× Install fail! Error: post install error, please remove node_modules before retry!
Run "C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild" error, exit code 1
Error: post install error, please remove node_modules before retry!

@lovell
Copy link
Owner

lovell commented Apr 28, 2017

Hello, there are some suggestions at chjj/pty.js#60 that might help here.

@tboevil
Copy link
Author

tboevil commented Apr 28, 2017

thank you for your help, I try to set msvs_version ,but still not resolved,and I fount that I only have 32 bit .NET version, I try to install vs express tomorrow

@tboevil
Copy link
Author

tboevil commented Apr 29, 2017

I installed visual studio today,but it's not resolved my problem,even make my cmder and xshell is bad,so I give up and install Linux .thinks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants