2016-12-02 155 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來解決這個問題。

相關問題