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
找到這些工具;我只是不知道爲什麼。