本人已把百度跟google翻个遍了,就是找不到答案
,请问哪位大神知道怎么解决这个问题吗?求赐教。。
已安装依赖:
VS2015
node-gyp
python->版本2.7.8
npm->版本3.8.9
node->版本6.2.0
下面是错误信息:
PS E:\LAMP\Apache2\htdocs\git_test\microblog> npm install ccap
> ccap@0.6.10 preinstall E:\LAMP\Apache2\htdocs\git_test\microblog\node_modules\.staging\ccap-82a2e56d
> 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.6.10 install E:\LAMP\Apache2\htdocs\git_test\microblog\node_modules\ccap
> node-gyp rebuild
E:\LAMP\Apache2\htdocs\git_test\microblog\node_modules\ccap>if not defined npm_config_node_gyp (node "E:\nodejs\node_mod
ules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
hcaptha.cc
cap.cc
..\addon\cap.cc : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢
失 [E:\LAMP\Apache2\htdocs\git_test\m
icroblog\node_modules\ccap\build\hcaptha.vcxproj]
..\addon\cap.cc(3): fatal error C1083: 无法打开包括文件: “node.h”: No such file or directory [E:\LAMP\Apache2\htdocs\g
it_test\m
icroblog\node_modules\ccap\build\hcaptha.vcxproj]
..\addon\hcaptha.cc(1): fatal error C1083: 无法打开包括文件: “node.h”: No such file or directory [E:\LAMP\Apache2\htdo
cs\git_te
st\microblog\node_modules\ccap\build\hcaptha.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (E:\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command "E:\\nodejs\\node.exe" "E:\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebui
ld"
gyp ERR! cwd E:\LAMP\Apache2\htdocs\git_test\microblog\node_modules\ccap
gyp ERR! node -v v6.2.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "E:\\nodejs\\node.exe" "E:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "ccap"
npm ERR! node v6.2.0
npm ERR! npm v3.8.9
npm ERR! code ELIFECYCLE
npm ERR! ccap@0.6.10 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ccap@0.6.10 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ccap package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ccap
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ccap
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! E:\LAMP\Apache2\htdocs\git_test\microblog\npm-debug.log