win7下安装 npm install ccap时 出现如下错误。已经安装了gyp,也已经安装了vs2008 ,大家帮忙看下是哪儿的问题?先谢了。
发布于 11 年前 作者 joyrui 12647 次浏览 最后一次编辑是 8 年前

C:\Users\user\microblog1>npm install ccap npm WARN package.json microblog@0.0.1 No repository field. npm WARN package.json microblog@0.0.1 No readme data. npm WARN package.json connect-mongo@0.1.9 No repository field. npm WARN package.json connect-mongo@0.1.9 No readme data. npm WARN package.json connect-flash@0.1.0 No readme data. npm WARN package.json mongodb@1.1.0 No readme data. npm http GET https://registry.npmjs.org/ccap npm http 304 https://registry.npmjs.org/ccap

ccap@0.3.7 preinstall C:\Users\user\microblog1\node_modules\ccap node make.js

I’m glad you to select ccap, enjoy it!

ccap is a cross plat form and portable nodejs simple captcha module, simple api and lightweight.

starting compile ccap! good luck!

ccap@0.3.7 install C:\Users\user\microblog1\node_modules\ccap node-gyp rebuild

C:\Users\user\microblog1\node_modules\ccap>node “C:\Program Files\nodejs\node_mo dules\npm\bin\node-gyp-bin\…\node_modules\node-gyp\bin\node-gyp.js” rebuild

C:\Users\user\microblog1\node_modules\ccap\build\binding.sln : error MSB6006: “ VCBuild.exe” exited with code -1. gyp ERR! build error gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v3.5\msbuild.exe fail ed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules
npm\node_modules\node-gyp\lib\build.js:267:23) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:

gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command “node” “C:\Program Files\nodejs\node_modules\npm\node_modu les\node-gyp\bin\node-gyp.js” "rebuild" gyp ERR! cwd C:\Users\user\microblog1\node_modules\ccap gyp ERR! node -v v0.10.7 gyp ERR! node-gyp -v v0.9.5 gyp ERR! not ok npm ERR! weird error 1 npm ERR! not ok code 0

6 回复

下载一个 vs 2010 吧,还有node 建议不要用x64 版本的。。

非常感谢两位的回复,问题已解决,这种情况使用vs2010版本即可。

thanks。

thanks。

赶脚大家都是被逼的:(

回到顶部