MSBUILD when the npm install: error MSB4132: Tools does not recognize the version "2.0." Available version of the tool is "14.0", "4.0."

MSBUILD emerged when installing node-sass: error MSB4132: Tools does not recognize the version "2.0." Available version of the tool is "14.0", "4.0."

Solution: After the administrator to run cmd, enter

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

  Wait for completion.

  2、npm config set msvs_version 2015 --global

  Waiting finished running.

Then run again:

  npm uninstall node-sass

  npm install node-sass @ version number

  

Guess you like

Origin www.cnblogs.com/xiangxinhouse/p/11975133.html