ccap这个包 有问题
来源:2-2 环境搭建下

Lime2019
2021-12-26
官方介绍中有:
Please never using ccap in production on windows and mac, only with linux.
与这个包相同需要node-gyp
进行编译的bcrypt
,安装是没有问题的。
安装报错包括:
info run ccap@0.6.10 install node_modules/ccap node-gyp rebuild
info run ccap@0.6.10 install { code: 1, signal: null }
timing reify:rollback:createSparse Completed in 1559ms
timing reify:rollback:retireShallow Completed in 0ms
timing command:i Completed in 405625ms
verbose stack Error: command failed
verbose stack at ChildProcess.<anonymous> (C:\environment\node\node_global\node_modules\npm\node_modules\@npmcli\promise-spawn\index.js:64:27)
verbose stack at ChildProcess.emit (node:events:390:28)
verbose stack at maybeClose (node:internal/child_process:1064:16)
verbose stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
verbose pkgid ccap@0.6.10
verbose cwd E:\temporary\security\example
verbose Windows_NT 10.0.22000
verbose argv "C:\\environment\\node\\nodejs\\node.exe" "C:\\environment\\node\\node_global\\node_modules\\npm\\bin\\npm-cli.js" "i"
verbose node v16.13.1
verbose npm v8.3.0
error code 1
error path E:\temporary\security\example\node_modules\ccap
error command failed
error command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild
error �ڴ˽��������һ������һ����Ŀ����Ҫ���ò������ɣ������ӡ�/m�����ء�
error hcaptha.cc
error cap.cc
error e:\temporary\security\example\node_modules\ccap\addon\cap.cc : warning C4819: ���ļ����������ڵ�ǰ����ҳ(936)�б�ʾ���ַ����뽫���ļ�����Ϊ Unicode ��ʽ�Է�ֹ���ݶ�ʧ [E:\temporary\security\example\node_modules\ccap\build\hcaptha.vcxproj]
error e:\temporary\security\example\node_modules\ccap\addon\jpeglib\cimg.h(2147): warning C4530: ʹ���� C++ �쳣��������δ����չ�����塣��ָ�� /EHsc [E:\temporary\security\example\node_modules\ccap\build\hcaptha.vcxproj]
error e:\temporary\security\example\node_modules\ccap\addon\cap.cc(43): error C2660: ��v8::Value::ToString��: ���������� 0 ������ [E:\temporary\security\example\node_modules\ccap\build\hcaptha.vcxproj]
error c:\users\xjh\appdata\local\node-gyp\cache\16.13.1\include\node\v8.h(3048): note: ���v8::Value::ToString��������
error e:\temporary\security\example\node_modules\ccap\addon\cap.cc(45): error C2660: ��v8::Value::ToString��: ���������� 0 ������ [E:\temporary\security\example\node_modules\ccap\build\hcaptha.vcxproj]
error c:\users\xjh\appdata\local\node-gyp\cache\16.13.1\include\node\v8.h(3048): note: ���v8::Value::ToString��������
error e:\temporary\security\example\node_modules\ccap\addon\cap.cc(47): error C2660: ��v8::Value::Int32Value��: ���������� 0 ������ [E:\temporary\security\example\node_modules\ccap\build\hcaptha.vcxproj]
error c:\users\xjh\appdata\local\node-gyp\cache\16.13.1\include\node\v8.h(3107): note: ���v8::Value::Int32Value��������
error e:\temporary\security\example\node_modules\ccap\addon\cap.cc(48): error C2660: ��v8::Value::Int32Value��: ���������� 0 ������ [E:\temporary\security\example\node_modules\ccap\build\hcaptha.vcxproj]
error c:\users\xjh\appdata\local\node-gyp\cache\16.13.1\include\node\v8.h(3107): note: ���v8::Value::Int32Value��������
error e:\temporary\security\example\node_modules\ccap\addon\cap.cc(49): error C2660: ��v8::Value::Int32Value��: ���������� 0 ������ [E:\temporary\security\example\node_modules\ccap\build\hcaptha.vcxproj]
error c:\users\xjh\appdata\local\node-gyp\cache\16.13.1\include\node\v8.h(3107): note: ���v8::Value::Int32Value��������
error e:\temporary\security\example\node_modules\ccap\addon\cap.cc(50): error C2660: ��v8::Value::Int32Value��: ���������� 0 ������ [E:\temporary\security\example\node_modules\ccap\build\hcaptha.vcxproj]
error c:\users\xjh\appdata\local\node-gyp\cache\16.13.1\include\node\v8.h(3107): note: ���v8::Value::Int32Value��������
error e:\temporary\security\example\node_modules\ccap\addon\cap.cc(51): error C2660: ��v8::Value::Int32Value��: ���������� 0 ������ [E:\temporary\security\example\node_modules\ccap\build\hcaptha.vcxproj]
error c:\users\xjh\appdata\local\node-gyp\cache\16.13.1\include\node\v8.h(3107): note: ���v8::Value::Int32Value��������
error e:\temporary\security\example\node_modules\ccap\addon\cap.cc(52): error C2660: ��v8::Value::Int32Value��: ���������� 0 ������ [E:\temporary\security\example\node_modules\ccap\build\hcaptha.vcxproj]
error c:\users\xjh\appdata\local\node-gyp\cache\16.13.1\include\node\v8.h(3107): note: ���v8::Value::Int32Value��������
error e:\temporary\security\example\node_modules\ccap\addon\cap.cc(53): error C2660: ��v8::Value::Int32Value��: ���������� 0 ������ [E:\temporary\security\example\node_modules\ccap\build\hcaptha.vcxproj]
error c:\users\xjh\appdata\local\node-gyp\cache\16.13.1\include\node\v8.h(3107): note: ���v8::Value::Int32Value��������
error e:\temporary\security\example\node_modules\ccap\addon\cap.cc(57): error C2664: ��void v8::ReturnValue<T>::Set(uint32_t)��: �������� 1 �ӡ�v8::MaybeLocal<v8::String>��ת��Ϊ��bool�� [E:\temporary\security\example\node_modules\ccap\build\hcaptha.vcxproj]
error with
error [
error T=v8::Value
error ]
error e:\temporary\security\example\node_modules\ccap\addon\cap.cc(57): note: û�п�����ִ�и�ת�����û������ת������������������ø������
error e:\temporary\security\example\node_modules\ccap\addon\cap.cc(84): warning C4018: ��<��: �з���/���Ų�ƥ�� [E:\temporary\security\example\node_modules\ccap\build\hcaptha.vcxproj]
error e:\temporary\security\example\node_modules\ccap\addon\cap.cc(149): error C2660: ��v8::Value::ToString��: ���������� 0 ������ [E:\temporary\security\example\node_modules\ccap\build\hcaptha.vcxproj]
error c:\users\xjh\appdata\local\node-gyp\cache\16.13.1\include\node\v8.h(3048): note: ���v8::Value::ToString��������
error e:\temporary\security\example\node_modules\ccap\addon\cap.cc(149): error C2512: ��v8::String::Utf8Value::Utf8Value��: û�к��ʵ�Ĭ�Ϲ��캯������ [E:\temporary\security\example\node_modules\ccap\build\hcaptha.vcxproj]
error gyp info it worked if it ends with ok
写回答
1回答
-
TooooBug
2022-01-10
现在是有没有问题呢?在此之前做了什么操作也说明一下?
00
相似问题