npm install error: “The build tools for v120 (Platform Toolset = 'v120') cannot be found”

后端 未结 5 1596
無奈伤痛
無奈伤痛 2021-01-31 20:22

While running an npm install that required a node-gyp rebuild, the following build error was thrown:

MSB8020: The build tools for v120 (Platf

5条回答
  •  迷失自我
    2021-01-31 20:42

    Setting version to 2015 didn't help for me. Try setting it to 2013 instead:

    npm config set msvs_version 2013

    or

    npm config set msvs_version 2015

提交回复
热议问题