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

I got this error first time when i was trying to install the React Js Set up.

I just realized the thing that when we first time install the node js in our system then we will get this error.

We can solve this error by running the commands that are mentioned below.

We just need to install the node js only.

After installing node js we can use npm i.e node package manager to install further dependencies like python ,windows build tools etc.

Once You fix this issue it will never come again.

Now let's see the commands that we need to run through the powershell to fix the issue.






Fixed below Errors :

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

Node sass related error,

node-gyp related error.


Solution for Above Errors:
Follow these steps correctly  to configure all the things needed to run react application.


#Open Powershell as Administrator =>

1.cd  <react project folder>.

2.run below commands :

 & npm --add-python-to-path='true' --debug install --global windows-build-tools

 & npm config set python "%USERPROFILE%\.windows-build-tools\python27\python.exe"

 & npm install -g windows-build-tools

 & npm install.

 & npm start.

Comments