windows下安装ccap失败 VCBuild.exe错误
发布于 18小时前 作者 moxiaobei2 42 次浏览 来自 问答

由于想用用ccap的组件,所以想npm install 下来,可以下载的过程中遇到一些问题,类似这种情况在下载其他的时候也遇到过,按照上面的提示要你安装.NET framework 2.0及 vs2005组件,于是我安装了,之后又说是gyp的问题,于是我也安装了python同时设置了npm config set python xxx\xx.exe,然后再执行npm instll -g ccap,还是报错,实在找不出是什么问题,希望有遇到的同学帮忙看一下,指点迷津。

*****> [email protected] install C:\Users\pc\AppData\Roaming\npm\node_modules\ccap

node-gyp rebuild

C:\Users\pc\AppData\Roaming\npm\node_modules\ccap>node “D:\nodejs\node_modules\n pm\bin\node-gyp-bin\…\node_modules\node-gyp\bin\node-gyp.js” rebuild child_process: customFds option is deprecated, use stdio instead. Building the projects in this solution one at a time. To enable parallel build, please add the “/m” switch. XML 分析期间发生以下错误:

文件: C:\Users\pc\AppData\Roaming\npm\node_modules\ccap\build\hcaptha.vcproj 行: 1 列: 4667 错误信息: 系统错误: -2147154687。

文件“C:\Users\pc\AppData\Roaming\npm\node_modules\ccap\build\hcaptha.vcproj” 未能加 载。 MSBUILD : error MSB6006: “VCBuild.exe”已退出,代码为 -1。 [C:\Users\pc\AppData \Roaming
npm\node_modules\ccap\build\binding.sln] 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 (D:\nodejs\node_modules\npm\node_modul es\node-gyp\lib\build.js:267:23) gyp ERR! stack at ChildProcess.emit (events.js:110:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1067 :12) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command “node” “D:\nodejs\node_modules\npm\node_modules\node-gyp\ bin\node-gyp.js” “rebuild” gyp ERR! cwd C:\Users\pc\AppData\Roaming\npm\node_modules\ccap gyp ERR! node -v v0.12.0 gyp ERR! node-gyp -v v1.0.2 gyp ERR! not ok npm ERR! Windows_NT 6.1.7601 npm ERR! argv “D:\nodejs\\node.exe” “D:\nodejs\node_modules\npm\bin\npm- cli.js” “install” “ccap” "-g" npm ERR! node v0.12.0 npm ERR! npm v2.5.1*****

回到顶部