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

后端 未结 5 1593
無奈伤痛
無奈伤痛 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:40

    I already spend 2 days installing all VS versions...

    npm install oracledb --msvs_version=2015
    

    Return all lot of errors :

    [..]node-gyp\6.9.1\include\node\v8.h(18): fatal error C1083[..]
    

    Using

    npm install oracledb --msvs_version=2013
    

    Return a lot of warnings, compile but doesn't work properly after.

    [..]warning C4995: 'v8::Value::ToUint32'[..]
    

    This is my worst ever experience with a npm module. What a waste of time :/

提交回复
热议问题