2016-12-02 157 views
0

我有一个项目取决于d3版本3.5.3并取决于contextify。当它通过node-gyp运行时,它已经炸毁了。一般来说,我已经能够通过指定msvs_version=2015来解决这个问题,但那并不奏效。所以,我执行下列操作:node-gyp和contextify - 无法找到v140(平台工具集='v140')的构建工具

  1. 修改我安装VS 2015和安装一切,这将有遂把Common Tools for Visual C++
  2. 执行npm install -g windows-build-tools
  3. 执行的npm config set msvs_version 2015

即使有这些措施,我还是收到此错误:

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.Platform.targets(44,5): 
error MSB8020: The builds tools for v140 (Platform T oolset = 'v140') cannot be found. 
To build using the v140 build tools, either click the Project menu or right-click the solution, 
and then select "Update VC++ Projects...". Install v140 to build using the v140 build tools. 

有趣的部分对我来说,它正试图在v110找到这些工具;我只是不知道为什么。

回答

1

我通过在Visual Studio开发人员命令提示符中执行npm install来解决这个问题。

相关问题