npm install socket.io 提示缺少"VCBuild.exe"
2015-07-15 15:41
549 查看
如下提示:
d:\Dev\node.js\test\hello\node_modules\socket.io\node_modules\socket.io-client
ode_modules\ws>node “c:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin
…\node_modules\node-gyp\bin\node-gyp.js” rebuild
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
MSBUILD : error MSB3428: 未能加载 Visual C++ 组件“VCBuild.exe”。要解决此问题,
安装 .NET Fram ework 2.0 SDK;2) 安装 Microsoft Visual Studio 2005;或 3) 如果将该组件安装到了 其他位置,请将其位置添加到系统 路径中。 [d:\Dev\node.js\test\hello\node_modules\socket.io\node_modules\socket. o-c lient\node_modules\ws\build\binding.sln] MSBUILD : error MSB3428: 未能加载 Visual C++ 组件“VCBuild.exe”。要解决此问题,
安装 .NET Fram ework 2.0 SDK;2) 安装 Microsoft Visual Studio 2005;或 3) 如果将该组件安装到了 其他位置,请将其位置添加到系统 路径中。 [d:\Dev\node.js\test\hello\node_modules\socket.io\node_modules\socket. o-c lient\node_modules\ws\build\binding.sln] socket.io@0.9.13 node_modules\socket.io
之前提示python不存在,装了ActivePython2.7.2,然后提示没有VCBuild.exe. 又装的windows SDK 7 等
其实我的电脑上已经装了vs2008 和 vs2012了,但是还是报错:
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(297,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry.
TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. [C:\Users\Jason.yang\AppData\Roaming\npm\node_modules\ws\node_modules\bufferutil\build\bufferutil.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\Microsoft.Cpp.x64.targets(152,5): error MSB6006: “CL.exe”已退出,代码为 -1073741515。 [C:\Users\Jason.yang\AppData\Roaming\npm\node_modules\ws\node_modules\bufferutil\build\bufferutil.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074
:12)
经搜索网友评论,发现需要更新的强制指定,比如用vs2012
npm config set msvs_version 2012 --global
d:\Dev\node.js\test\hello\node_modules\socket.io\node_modules\socket.io-client
ode_modules\ws>node “c:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin
…\node_modules\node-gyp\bin\node-gyp.js” rebuild
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
MSBUILD : error MSB3428: 未能加载 Visual C++ 组件“VCBuild.exe”。要解决此问题,
安装 .NET Fram ework 2.0 SDK;2) 安装 Microsoft Visual Studio 2005;或 3) 如果将该组件安装到了 其他位置,请将其位置添加到系统 路径中。 [d:\Dev\node.js\test\hello\node_modules\socket.io\node_modules\socket. o-c lient\node_modules\ws\build\binding.sln] MSBUILD : error MSB3428: 未能加载 Visual C++ 组件“VCBuild.exe”。要解决此问题,
安装 .NET Fram ework 2.0 SDK;2) 安装 Microsoft Visual Studio 2005;或 3) 如果将该组件安装到了 其他位置,请将其位置添加到系统 路径中。 [d:\Dev\node.js\test\hello\node_modules\socket.io\node_modules\socket. o-c lient\node_modules\ws\build\binding.sln] socket.io@0.9.13 node_modules\socket.io
之前提示python不存在,装了ActivePython2.7.2,然后提示没有VCBuild.exe. 又装的windows SDK 7 等
其实我的电脑上已经装了vs2008 和 vs2012了,但是还是报错:
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(297,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry.
TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. [C:\Users\Jason.yang\AppData\Roaming\npm\node_modules\ws\node_modules\bufferutil\build\bufferutil.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\Microsoft.Cpp.x64.targets(152,5): error MSB6006: “CL.exe”已退出,代码为 -1073741515。 [C:\Users\Jason.yang\AppData\Roaming\npm\node_modules\ws\node_modules\bufferutil\build\bufferutil.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074
:12)
经搜索网友评论,发现需要更新的强制指定,比如用vs2012
npm config set msvs_version 2012 --global
相关文章推荐
- Robotium自动化测试运行遇到问题:Test run failed: Instrumentation run failed due to 'java.lang.ClassNotFoundException'
- 如何在managedQuery()和getContentResolver().query()方法中实现结果去重
- $.each() 中的 continue、break
- 第一周第二天([变量名] [运算符] [语句] [求水仙花数的算法][求一个十进制数转换成二进制数有多少个1的算法] [continue的用法])
- 纯Java方式 开发Android UI界面 减少布局文件数量
- sublime Text2 2.0.2 build 2221 64位 破解(已测试)
- iOS开发UI篇—transframe属性(形变
- Android开发UI之自定义控件的皮肤
- iOS开发UI基础—手写控件,frame,center和bounds属性
- iOS开发UI篇—Button基础
- 利用UICollectionView 实现 页面瀑布流效果
- 利用栈Stack实现队列(Queue)
- bluethooth BLE Android
- 安卓uiautomator使用步骤
- Android音乐播放器 -- UI 代码构现
- sourceinsight 添加quicker.em生效
- Django: CSRF verification failed. Request aborted.
- UITableView beginUpdate和endUpdate使用的前提
- cxgrid footer summary value by a column
- leetCode 63.Unique Paths II (唯一路径II) 解题思路和方法