-
Notifications
You must be signed in to change notification settings - Fork 211
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". #60
Comments
Install a visual studio express 2013(desktop with c++ redist), this will help |
Thanks! It helped! |
Surely a whole 8GB of IDE aren't needed just to get this working? Is there not a smaller option? |
You can try also But a general recomendation - use mac or ubuntu :) |
Sadly installing Microsoft Build Tools (as mentioned on previous message) wont work, since it installs "12.0". Basically, you'll get something like this: MSBUILD : error MSB4132: The tools version "2.0" is unrecognized. Available tools versions are "12.0", "4.0". |
I'm having the exact same problem. Tried to get version 2, got version 12. |
Got this as well. Not sure if it has to do with either Windows 10 or Visual Studio RC 2015 |
I was getting the same error as reported above. Installing the Microsoft Build Tools 2013 from the above links didn't work for me either. It only installed version 12.0, so I still received an error re: version 2.0. |
i have the same problem,when i intsall msbt 2013,it doen't work . how do you reslove? |
I can also attest to this error. On Windows 10 x64, I see |
thanks,i reslove it by add --msvs_version=2013 . @shawmanz32na |
@TNT-Likely Where did you add the --msvs_version switch? I'm encountering this error way down the chain of a yeoman generation, and don't know where I can specify the switch... |
For those of us following along that are encountering this error deep down in an NPM call, you can use |
good |
Where did you add it to? To your morning smoothie? Express your ideas more precise, please |
Didn't work for me
|
open up a new cmd as administrator and run this command: |
For anyone using Yarn, the above comment worked for me after running the same command with Yarn. So, for anyone skimming: $ npm install --global --production windows-build-tools
$ yarn config set msvs_version 2015 --global |
thank you all |
wow saved my day! Thanks |
Thanks All Of you for save my day |
Thanks All |
just run |
@mokanfar 's comment helped to fix one error, but another showed up:
EDIT: fixed by doing a manual install. |
Open cmd with administrator and write this command: npm install --global --production windows-build-tools |
If you're seeing this in 2019, you may need
|
@mike-seekwell 👍Niubility! |
thank you all |
Q:
# Operating System: Windows 10 Pro 64-bit (10.0, Build 17134) (17134.rs4_release.180410-1804)
$ npm i
A:$ npm -h
$ npm help config
$ npm config list
$ npm config ls -l OK
Error## not work at all???
$ npm config set msvs_version 2017 ## ???
$ npm install --global --production windows-build-tools
$ npm config set msvs_version 2012 --global
# ???
$ npm config set msvs_version 2012
$ npm config list -l
$ npm config list --json
|
For anyone, who see this error and did not find solution. I found solution for my project. |
@NeliHarbuzava thank you so much. Saved me a lot of time. I uninstalled nodejs via chocolatey and then installed the https://chocolatey.org/packages/nodejs-lts package instead (long term support) which is version 10.x. 👍 ❤️ |
in my case
I resolved this problem. |
Just open a CMD window in Administrator mode and type "npm install --global windows-build-tools --vs2015". This will install Build Tools 2015 version, implicitly what you need. It worked for me. |
I was able to compile it by running (as administrator):
and then performing the usual steps as a regular user. |
life saver!!! |
I solved like this: having to open an old 2019 project. I was using node version 14.18.0, I went back to v12.0.0 using nvm for windows (when you do this you might have to empy the C:\Program Files\nodejs if you can't switch version with nvm) and this solved my problem. After that npm install worked. |
When running npm install pty.js on windows I get:
C:\cygwin\opts\newclient\node_modules\pty.js>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin....\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.
MSBUILD : error MSB4132: The tools version "2.0" is unrecognized. Available tools versions are "4.0".
gypnpm ERR! pty.js@0.2.3 install:
node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pty.js@0.2.3 install script.
npm ERR! This is most likely a problem with the pty.js package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls pty.js
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "pty.js"
npm ERR! cwd C:\cygwin\opts\newclient
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.24
npm ERR! code ELIFECYCLE
I have installed winpty, but apparently I'm missing some tools. What do I need more?
The text was updated successfully, but these errors were encountered: