SOLVED: Problem with install sharp module for node.js on windows – The tools version “2.0” is unrecognized. Available tools versions are “4.0”

 

If You have problem with install sharp module for node.js on windows, and as result You’ve got  message error like “..The tools version “2.0” is unrecognized. Available tools versions are “4.0”..” or similar:

then to solve this problem, before installing sharp, You need to install python and windows build tools to run node-gyp using presented following solution.

The best solution which works on different windows edition, bases on executing below presented command in admin mode:

npm install --global --production windows-build-tools

 

Using this command on Your window machine will be installed python and windows build tools COMPATIBLE with your node.js version

February 26th, 2018