0
我有一个项目取决于d3
版本3.5.3
并取决于contextify
。当它通过node-gyp
运行时,它已经炸毁了。一般来说,我已经能够通过指定msvs_version=2015
来解决这个问题,但那并不奏效。所以,我执行下列操作:node-gyp和contextify - 无法找到v140(平台工具集='v140')的构建工具
- 修改我安装VS 2015和安装一切,这将有遂把
Common Tools for Visual C++
。 - 执行
npm install -g windows-build-tools
。 - 执行的
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
找到这些工具;我只是不知道为什么。