node-gyp 在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。

在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/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

后解决。

猜你喜欢

转载自www.cnblogs.com/pangguoming/p/11261995.html