在此解決方案中一次生成一個項目。若要啟用並行生成,請添加“/m”開關。
MSBUILD : error MSB3428: 未能加載 Visual C++ 組件“VCBuild.exe”。要解決此問題,
1) 安裝 .NET Framework 2.0 SDK;
2) 安裝 Microsoft Visual Studio 2005;或
3) 如果將該組件安裝到了 其他位置,請將其位置添加到系統 路徑中。 [G:\nodejs\moviesite\node_modules\bcrypt\build\binding.sln]
gyp ERR! build error
如圖:
需要安裝Microsoft Visual Studio Express 2013 for Windows Desktop
(版本應該不限制,我安裝的是上邊的版本)
安裝成功,但是出現了警告,警告不影響bcrypt的使用
但系統中vs2005是存在的,最后參考 https://github.com/nodejs/node-gyp#installation 文檔使用
npm install --global --production windows-build-tools
后解決。