2014-03-28 198 views
2

當我嘗試安裝在NPM包我一直得到錯誤類似如下: C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.t argets(64,5): error MSB8020: The build tools for Visual Studio 2010 (Platform T oolset = 'v100') cannot be found. To build using the v100 build tools, please i nstall Visual Studio 2010 build tools. Alternatively, you may upgrade to the c urrent Visual Studio tools by selecting the Project menu or right-click the sol ution, and then selecting "Upgrade Solution...". [C:\Projects\framework \node_modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_m odules\ws\build\bufferutil.vcxproj] 可以在Windows 8.1上運行Node.js嗎?

我的Visual Studio 12和Visual Studio Express的10

我試過很多東西,在這一點上我認爲Windows 8不支持Node,但如果任何人有幸運,請告訴我。

有人在Cygwin下運行Node有合理的經驗嗎?

+0

我在Windows 8.1上運行節點0.10.26。安裝它沒有問題。我也安裝了cygwin。也許你正面臨與Visual Studio的某種衝突。您是否試圖在Google上搜索此錯誤? –

+1

我不認爲這與Node.js相關,但是您正在安裝的模塊。從你有的消息我想你正在嘗試安裝'karma',它的構建腳本使用VS2010。 –

+0

@ShaunXu當我嘗試安裝不同的東西時,出現許多模塊上的錯誤。它似乎與node-gyp有關,它用於安裝很多東西。 – Joe

回答

0

我在Windows 8上遇到過類似的問題,你有沒有試過安裝python 2.x?因爲node-gyp需要python來生成配置以便稍後進行編譯。

相關問題