代碼好多坑額,node-gyp要vs::::
MSBUILD : error MSB3411: Could not load the Visual C++ component "VCBuild.exe". If the component is not install
ndows SDK for Windows Server 2008 and .NET Framework 3.5, or 2) install Microsoft Visual Studio 2008. ?[E:\movi
les\mongodb\node_modules\bson\build\binding.sln]
2017-07-05
用npm install -g appium進行安裝,出現(xiàn)如下錯誤,已經(jīng)安裝了.net framework4.0還是不行,請高手指點,萬分感激。
2015-05-27
記錄一下,之前的NPM版本是1.3.14,安裝最新版的mongodb是老是報錯
我的內(nèi)心幾乎是奔潰的。用二樓的方法還是不行,
最后是重新安裝了nodejs,這是的版本是2.10.1,再安裝mongodb時沒有錯誤了
2015-04-28
2樓答案親測可用
2015-02-12
原因
npm在1.3.15版本以前node-gyp 在編譯時會調(diào)用VCBuild.exe,在vs2012下是找不到的VCBuild.exe, vs2012及以后版本是msbuild.exe作為編譯器。
解決:
將npm 的 msvs的編譯器設置為vs2012
cmd執(zhí)行:
npm config set msvs_version 2012 --global?
2014-10-13
還好我這里沒問題,我有VS2013,也安裝了ruby和python,不然編譯不過。