Code Monkey home page Code Monkey logo

vk-tunnel-client's Introduction

VK Tunnel

С помощью VK Tunnel вы можете сделать локальный веб-сервер доступным в интернете. Это нужно при отладке и демонстрации веб-приложений. VK Tunnel запускается на компьютере разработчика и создаёт специальное соединение (туннель), с помощью которого локальный веб-сервер становится доступным в интернете. Во время работы туннеля все внешние запросы к серверу и ответы на них проходят через туннель.

VK Tunnel предоставляет доступ к локальному серверу по протоколам HTTP, HTTPS, WebSocket и WebSocket Secure.

Установка

yarn

yarn global add @vkontakte/vk-tunnel

npm

npm install @vkontakte/vk-tunnel -g

Мы рекомендуем указать global для yarn или -g для npm, чтобы устанавливаемый пакет был доступен всем проектам на вашем компьютере.

Запуск, использование, параметры

Подробная информация об использовании и параметрах VK Tunnel — на портале для разработчиков ВКонтакте.

Полезные ссылки

Сотрудничество

Мы рады новым идеям и предложениям по улучшению библиотеки. Если вы хотите внести изменения:

  1. Сделайте ответвление (fork) репозитория.

  2. Склонируйте репозиторий и установите зависимости, выполнив команду yarn или npm install.

  3. Внесите изменения в код.

  4. Выполните сборку с помощью команды yarn run build или npm run build.

  5. Установите изменённый пакет с помощью yarn link или npm link.

    Запустите его, чтобы протестировать изменения, выполнив vk-tunnel.

  6. Отправьте MR нам на проверку.

vk-tunnel-client's People

Contributors

angelinadementeva avatar evg-evdokimov avatar evgwed avatar gbagretsov avatar heyqbnk avatar kuhel avatar mainsmirnov avatar mertas-vk avatar mobyman avatar pasha-nikitin-2003 avatar pavel-nikitin-2022 avatar ponomarevlad avatar pronin-vk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vk-tunnel-client's Issues

Проблема с установкой пакета на Windows 11

npm WARN cleanup Failed to remove some directories [
npm WARN cleanup [
npm WARN cleanup 'C:\Users\medan\AppData\Roaming\npm\node_modules\@VKontakte\vk-tunnel\node_modules\resolve',
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\resolve\test\resolver\bar'] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: 'EPERM',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'C:\Users\medan\AppData\Roaming\npm\node_modules\@VKontakte\vk-tunnel\node_modules\resolve\test\resolver\bar'
npm WARN cleanup }
npm WARN cleanup ],
npm WARN cleanup [
npm WARN cleanup 'C:\Users\medan\AppData\Roaming\npm\node_modules\@VKontakte\vk-tunnel',
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\Release'] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: 'EPERM',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'C:\Users\medan\AppData\Roaming\npm\node_modules\@VKontakte\vk-tunnel\node_modules\websocket\build\Release'
npm WARN cleanup }
npm WARN cleanup ],
npm WARN cleanup [
npm WARN cleanup 'C:\Users\medan\AppData\Roaming\npm\node_modules\@VKontakte\vk-tunnel\node_modules',
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build'] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: 'EPERM',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'C:\Users\medan\AppData\Roaming\npm\node_modules\@VKontakte\vk-tunnel\node_modules\websocket\build'
npm WARN cleanup }
npm WARN cleanup ],
npm WARN cleanup [
npm WARN cleanup 'C:\Users\medan\AppData\Roaming\npm\node_modules\@VKontakte\vk-tunnel',
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build'] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: 'EPERM',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'C:\Users\medan\AppData\Roaming\npm\node_modules\@VKontakte\vk-tunnel\node_modules\websocket\build'
npm WARN cleanup }
npm WARN cleanup ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\websocket
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! bufferutil.cc
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan_callbacks.h(55,23): error C2039: "AccessorSignature": �� ���� 童��� "v8". [C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR! C:\Users\medan\AppData\Local\node-gyp\Cache\20.11.0\include\node\v8.h(71,11):
npm ERR! �. ������� "v8"
npm ERR!
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan_callbacks.h(55,23): error C2065: AccessorSignature: ��������� �����䨪��� [C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR!
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan_callbacks.h(55,13): error C2923: v8::Local: "AccessorSignature" �� ���� �����⨬� ��㬥�⮬ ⨯� 蠡��� ��� ��ࠬ��� "T" [C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan_callbacks.h(55,23):
npm ERR! �. ������� "AccessorSignature"
npm ERR!
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan_callbacks.h(55,42): error C2955: "v8::Local": ��� �ᯮ�짮����� ����� 蠡��� �ॡ���� ᯨ᮪ ��㬥�⮢ 蠡��� [C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR! C:\Users\medan\AppData\Local\node-gyp\Cache\20.11.0\include\node\v8-local-handle.h(190,13):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,14): error C2955: "v8::Local": ��� �ᯮ�짮����� ����� 蠡��� �ॡ���� ᯨ᮪ ��㬥�⮢ 蠡��� [C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR! C:\Users\medan\AppData\Local\node-gyp\Cache\20.11.0\include\node\v8-local-handle.h(190,13):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,34): error C2641: �� 㤠���� �뢥�� ��㬥��� 蠡���� ��� "v8::Local". [C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR!
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,34): error C2780: "v8::Local v8::Local(T *)": ��������� ��㬥��� 1 - 0 �।��⠢���� [C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR! C:\Users\medan\AppData\Local\node-gyp\Cache\20.11.0\include\node\v8-local-handle.h(331,3):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,34): error C2780: "v8::Local v8::Local(v8::Local)": ��������� ��㬥��� 1 - 0 �।��⠢���� [C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR! C:\Users\medan\AppData\Local\node-gyp\Cache\20.11.0\include\node\v8-local-handle.h(195,3):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,34): error C2783: "v8::Local v8::Local(void)": �� 㤠���� �뢥�� ��㬥�� 蠡��� ��� "T" [C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR! C:\Users\medan\AppData\Local\node-gyp\Cache\20.11.0\include\node\v8-local-handle.h(192,3):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,34): error C2780: "v8::Local v8::Local(v8::Local)": ��������� ��㬥��� 1 - 0 �।��⠢���� [C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR! C:\Users\medan\AppData\Local\node-gyp\Cache\20.11.0\include\node\v8-local-handle.h(190,13):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2535,6): error C2665: "v8::ObjectTemplate::SetAccessor": �� ���� ��ॣ�㦥���� �㭪�� �� ����� �८�ࠧ����� �� ⨯� ��㬥�⮢ [C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR! C:\Users\medan\AppData\Local\node-gyp\Cache\20.11.0\include\node\v8-template.h(816,8):
npm ERR! ����� ���� "void v8::ObjectTemplate::SetAccessor(v8::Localv8::Name,v8::AccessorNameGetterCallback,v8::AccessorNameSetterCallback,v8::Localv8::Value,v8::AccessControl,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)"
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2535,6):
npm ERR! "void v8::ObjectTemplate::SetAccessor(v8::Localv8::Name,v8::AccessorNameGetterCallback,v8::AccessorNameSetterCallback,v8::Localv8::Value,v8::AccessControl,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)": ���������� �८�ࠧ����� ��㬥�� 7 �� "Nan::imp::Sig" � "v8::SideEffectType"
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2542,7):
npm ERR! ��� �믮������ ������� �८�ࠧ������ ��� ����㯭��� ������ �८�ࠧ������, ��।�������� ���짮��⥫��, ��� �맮� ������ ����������
npm ERR! C:\Users\medan\AppData\Local\node-gyp\Cache\20.11.0\include\node\v8-template.h(809,8):
npm ERR! ��� "void v8::ObjectTemplate::SetAccessor(v8::Localv8::String,v8::AccessorGetterCallback,v8::AccessorSetterCallback,v8::Localv8::Value,v8::AccessControl,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)"
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2535,6):
npm ERR! "void v8::ObjectTemplate::SetAccessor(v8::Localv8::String,v8::AccessorGetterCallback,v8::AccessorSetterCallback,v8::Localv8::Value,v8::AccessControl,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)": ���������� �८�ࠧ����� ��㬥�� 2 �� "Nan::imp::NativeGetter" � "v8::AccessorGetterCallback"
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2537,7):
npm ERR! ��� �८�ࠧ������ �ॡ���� reinterpret_cast, �ਢ������ � �⨫� � ��� �ਢ������ � �⨫� �㭪樨 � ��㣫�� ᪮����
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2535,6):
npm ERR! �� ����⪥ ᮯ��⠢��� ᯨ᮪ ��㬥�⮢ "(v8::Localv8::String, Nan::imp::NativeGetter, Nan::imp::NativeSetter, v8::Localv8::Object, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)"
npm ERR!
npm ERR! validation.cc
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan_callbacks.h(55,23): error C2039: "AccessorSignature": �� ���� 童��� "v8". [C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR! C:\Users\medan\AppData\Local\node-gyp\Cache\20.11.0\include\node\v8.h(71,11):
npm ERR! �. ������� "v8"
npm ERR!
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan_callbacks.h(55,23): error C2065: AccessorSignature: ��������� �����䨪��� [C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR!
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan_callbacks.h(55,13): error C2923: v8::Local: "AccessorSignature" �� ���� �����⨬� ��㬥�⮬ ⨯� 蠡��� ��� ��ࠬ��� "T" [C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan_callbacks.h(55,23):
npm ERR! �. ������� "AccessorSignature"
npm ERR!
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan_callbacks.h(55,42): error C2955: "v8::Local": ��� �ᯮ�짮����� ����� 蠡��� �ॡ���� ᯨ᮪ ��㬥�⮢ 蠡��� [C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR! C:\Users\medan\AppData\Local\node-gyp\Cache\20.11.0\include\node\v8-local-handle.h(190,13):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,14): error C2955: "v8::Local": ��� �ᯮ�짮����� ����� 蠡��� �ॡ���� ᯨ᮪ ��㬥�⮢ 蠡��� [C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR! C:\Users\medan\AppData\Local\node-gyp\Cache\20.11.0\include\node\v8-local-handle.h(190,13):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,34): error C2641: �� 㤠���� �뢥�� ��㬥��� 蠡���� ��� "v8::Local". [C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR!
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,34): error C2780: "v8::Local v8::Local(T *)": ��������� ��㬥��� 1 - 0 �।��⠢���� [C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR! C:\Users\medan\AppData\Local\node-gyp\Cache\20.11.0\include\node\v8-local-handle.h(331,3):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,34): error C2780: "v8::Local v8::Local(v8::Local)": ��������� ��㬥��� 1 - 0 �।��⠢���� [C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR! C:\Users\medan\AppData\Local\node-gyp\Cache\20.11.0\include\node\v8-local-handle.h(195,3):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,34): error C2783: "v8::Local v8::Local(void)": �� 㤠���� �뢥�� ��㬥�� 蠡��� ��� "T" [C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR! C:\Users\medan\AppData\Local\node-gyp\Cache\20.11.0\include\node\v8-local-handle.h(192,3):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,34): error C2780: "v8::Local v8::Local(v8::Local)": ��������� ��㬥��� 1 - 0 �।��⠢���� [C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR! C:\Users\medan\AppData\Local\node-gyp\Cache\20.11.0\include\node\v8-local-handle.h(190,13):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2535,6): error C2665: "v8::ObjectTemplate::SetAccessor": �� ���� ��ॣ�㦥���� �㭪�� �� ����� �८�ࠧ����� �� ⨯� ��㬥�⮢ [C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR! C:\Users\medan\AppData\Local\node-gyp\Cache\20.11.0\include\node\v8-template.h(816,8):
npm ERR! ����� ���� "void v8::ObjectTemplate::SetAccessor(v8::Localv8::Name,v8::AccessorNameGetterCallback,v8::AccessorNameSetterCallback,v8::Localv8::Value,v8::AccessControl,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)"
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2535,6):
npm ERR! "void v8::ObjectTemplate::SetAccessor(v8::Localv8::Name,v8::AccessorNameGetterCallback,v8::AccessorNameSetterCallback,v8::Localv8::Value,v8::AccessControl,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)": ���������� �८�ࠧ����� ��㬥�� 7 �� "Nan::imp::Sig" � "v8::SideEffectType"
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2542,7):
npm ERR! ��� �믮������ ������� �८�ࠧ������ ��� ����㯭��� ������ �८�ࠧ������, ��।�������� ���짮��⥫��, ��� �맮� ������ ����������
npm ERR! C:\Users\medan\AppData\Local\node-gyp\Cache\20.11.0\include\node\v8-template.h(809,8):
npm ERR! ��� "void v8::ObjectTemplate::SetAccessor(v8::Localv8::String,v8::AccessorGetterCallback,v8::AccessorSetterCallback,v8::Localv8::Value,v8::AccessControl,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)"
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2535,6):
npm ERR! "void v8::ObjectTemplate::SetAccessor(v8::Localv8::String,v8::AccessorGetterCallback,v8::AccessorSetterCallback,v8::Localv8::Value,v8::AccessControl,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)": ���������� �८�ࠧ����� ��㬥�� 2 �� "Nan::imp::NativeGetter" � "v8::AccessorGetterCallback"
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2537,7):
npm ERR! ��� �८�ࠧ������ �ॡ���� reinterpret_cast, �ਢ������ � �⨫� � ��� �ਢ������ � �⨫� �㭪樨 � ��㣫�� ᪮����
npm ERR! C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2535,6):
npm ERR! �� ����⪥ ᮯ��⠢��� ᯨ᮪ ��㬥�⮢ "(v8::Localv8::String, Nan::imp::NativeGetter, Nan::imp::NativeSetter, v8::Localv8::Object, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)"
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp info find Python using Python version 3.10.10 found at "C:\Users\medan\AppData\Local\Programs\Python\Python310\python.exe"
npm ERR! gyp info find VS using VS2022 (17.8.34511.84) found at:
npm ERR! gyp info find VS "C:\Program Files\Microsoft Visual Studio\2022\Community"
npm ERR! gyp info find VS run with --verbose for detailed information
npm ERR! gyp info spawn C:\Users\medan\AppData\Local\Programs\Python\Python310\python.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args 'C:\Users\medan\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'msvs',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\Users\medan\AppData\Roaming\npm\node_modules\@VKontakte\vk-tunnel\node_modules\websocket\build\config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\Users\medan\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\Users\medan\AppData\Local\node-gyp\Cache\20.11.0\include\node\common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=C:\Users\medan\AppData\Local\node-gyp\Cache\20.11.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=C:\Users\medan\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=C:\\Users\\medan\\AppData\\Local\\node-gyp\\Cache\\20.11.0\\<(target_arch)\\node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=C:\Users\medan\AppData\Roaming\npm\node_modules\@VKontakte\vk-tunnel\node_modules\websocket',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'C:\Users\medan\AppData\Roaming\npm\node_modules\@VKontakte\vk-tunnel\node_modules\websocket\build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args 'build\binding.sln',
npm ERR! gyp info spawn args '/clp:Verbosity=minimal',
npm ERR! gyp info spawn args '/nologo',
npm ERR! gyp info spawn args '/p:Configuration=Release;Platform=x64'
npm ERR! gyp info spawn args ]
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe failed with exit code: 1
npm ERR! gyp ERR! stack at ChildProcess. (C:\Users\medan\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:209:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:518:28)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12)
npm ERR! gyp ERR! System Windows_NT 10.0.22621
npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\medan\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd C:\Users\medan\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\websocket
npm ERR! gyp ERR! node -v v20.11.0
npm ERR! gyp ERR! node-gyp -v v10.0.1
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: C:\Users\medan\AppData\Local\npm-cache_logs\2024-01-18T08_50_16_490Z-debug-0.log

Проблема с установкой библиотеки vk-tunnel на macOS Sonoma 14.0

выдает ошибка пробую с sudo все равно это же проблема

npm ERR! code 1
npm ERR! path /Users/dilshodabdulloev/Desktop/vkmini_app/node_modules/@vkontakte/vk-tunnel/node_modules/websocket
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | darwin | arm64
npm ERR! gyp info find Python using Python version 3.12.0 found at "/Library/Frameworks/Python.framework/Versions/3.12/bin/python3"
npm ERR! gyp info spawn /Library/Frameworks/Python.framework/Versions/3.12/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/dilshodabdulloev/Desktop/vkmini_app/node_modules/@vkontakte/vk-tunnel/node_modules/websocket/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/dilshodabdulloev/Library/Caches/node-gyp/20.9.0/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/Users/dilshodabdulloev/Library/Caches/node-gyp/20.9.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/dilshodabdulloev/Library/Caches/node-gyp/20.9.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/dilshodabdulloev/Desktop/vkmini_app/node_modules/@vkontakte/vk-tunnel/node_modules/websocket',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! In file included from ../src/bufferutil.cc:17:
npm ERR! In file included from ../../nan/nan.h:176:
npm ERR! ../../nan/nan_callbacks.h:55:23: error: no member named 'AccessorSignature' in namespace 'v8'
npm ERR! typedef v8::Local<v8::AccessorSignature> Sig;
npm ERR!                   ~~~~^
npm ERR! In file included from ../src/bufferutil.cc:17:
npm ERR! ../../nan/nan.h:682:39: warning: 'IdleNotificationDeadline' is deprecated: Use MemoryPressureNotification() to influence the GC schedule. [-Wdeprecated-declarations]
npm ERR!     return v8::Isolate::GetCurrent()->IdleNotificationDeadline(
npm ERR!                                       ^
npm ERR! /Users/dilshodabdulloev/Library/Caches/node-gyp/20.9.0/include/node/v8-isolate.h:1291:3: note: 'IdleNotificationDeadline' has been explicitly marked deprecated here
npm ERR!   V8_DEPRECATE_SOON(
npm ERR!   ^
npm ERR! /Users/dilshodabdulloev/Library/Caches/node-gyp/20.9.0/include/node/v8config.h:550:39: note: expanded from macro 'V8_DEPRECATE_SOON'
npm ERR! # define V8_DEPRECATE_SOON(message) [[deprecated(message)]]
npm ERR!                                       ^
npm ERR! In file included from ../src/bufferutil.cc:17:
npm ERR! ../../nan/nan.h:2535:8: error: no matching member function for call to 'SetAccessor'
npm ERR!   tpl->SetAccessor(
npm ERR!   ~~~~~^~~~~~~~~~~
npm ERR! /Users/dilshodabdulloev/Library/Caches/node-gyp/20.9.0/include/node/v8-template.h:816:8: note: candidate function not viable: no known conversion from 'imp::Sig' (aka 'int') to 'v8::SideEffectType' for 7th argument
npm ERR!   void SetAccessor(
npm ERR!        ^
npm ERR! /Users/dilshodabdulloev/Library/Caches/node-gyp/20.9.0/include/node/v8-template.h:809:8: note: candidate function not viable: no known conversion from 'imp::NativeGetter' (aka 'void (*)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value> &)') to 'v8::AccessorGetterCallback' (aka 'void (*)(Local<v8::String>, const PropertyCallbackInfo<v8::Value> &)') for 2nd argument
npm ERR!   void SetAccessor(
npm ERR!        ^
npm ERR! 1 warning and 2 errors generated.
npm ERR! make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 1
npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
npm ERR! gyp ERR! System Darwin 23.0.0
npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /Users/dilshodabdulloev/Desktop/vkmini_app/node_modules/@vkontakte/vk-tunnel/node_modules/websocket
npm ERR! gyp ERR! node -v v20.9.0
npm ERR! gyp ERR! node-gyp -v v10.0.1
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: /Users/dilshodabdulloev/.npm/_logs/2023-11-07T05_46_33_754Z-debug-0.log

Vite React + Vk Tunnel

Не понимаю как настроить Vite и Туннель чтобы они работали нормально и сообща, несколько вариаций настроек я приложил ниже, а именно: два скрипта запуска и вайт конфиг..

Максимум чего я смог добиться - это запуска приложения в wormhole (по ссылке, что выдает туннель), т.е. он но в вк мне кажется что веб сокет не отдает какую-то информацию и всегда висит лоадер, но если через елементы его удалить, то я увижу своё приложение в самом вк, т.е. все то что нужно мне (всем)

Может быть это баг самого вк, не уверен, но туннелирование прокает и лоадер пропадает если я запускаюсь через вебпак (с условием что меняю у скрипта хост с 0000 на localhost)

пс уточню, что лоадер выше - от вк (вроде) внутри iframe, т.е. не от моего проекта

package.json

{
	"start": "vite",
	"startD": "vite --port 3002",
	"startA": "vite --port 3002 --https",

	"tunnel": "vk-tunnel --port=3002",
	"tunnelZ": "vk-tunnel --insecure=1 --http-protocol=https --ws-protocol=wss --host=0.0.0.0 --port=3002",
	"tunnelV": "vk-tunnel --insecure=1 --http-protocol=https --ws-protocol=wss --host=localhost --port=3002",
}
  • + endpoints=[web]
  • + app_id=5175414

vite.config.js

import basicSsl from '@vitejs/plugin-basic-ssl';

//

export default defineConfig({
	plugins: [react(), basicSsl()],
});

// or

export default defineConfig({
	server: {
		hmr: {
			clientPort: 443,
		},
	},
	plugins: [react(), basicSsl()],
});

// or

export default defineConfig({
	plugins: [react()],
	build: {
		target: 'es2015',
		assetsInlineLimit: 0,
		minify: 'terser',
		terserOptions: {
			compress: {
				drop_console: true,
				dead_code: true,
			},
			toplevel: false,
			keep_classnames: false,
			keep_fnames: false,
			safari10: false,
		},
	},
});

Проблема с установкой пакета на Windows 11

Node: v16.15.0
Python: 3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit (AMD64)] on win32
npm config get msvs_version: 2017

`npm install @vkontakte/vk-tunnel -g
npm ERR! code 1
npm ERR! path C:\Users\Sergey\AppData\Roaming\nvm\v16.15.0\node_modules@vkontakte\vk-tunnel\node_modules\websocket
npm ERR! command failed
npm ERR! command C:\windows\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp info find Python using Python version 3.11.0 found at "C:\Python311\python.exe"
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config
npm ERR! gyp ERR! find VS running in VS Command Prompt, installation path is:
npm ERR! gyp ERR! find VS "C:\Program Files\Microsoft Visual Studio\2022\Community"
npm ERR! gyp ERR! find VS - will only use this version
npm ERR! gyp ERR! find VS checking VS2022 (17.4.33122.133) found at:
npm ERR! gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools"
npm ERR! gyp ERR! find VS - found "Visual Studio C++ core features"
npm ERR! gyp ERR! find VS - found VC++ toolset: v143
npm ERR! gyp ERR! find VS - missing any Windows SDK
npm ERR! gyp ERR! find VS checking VS2017 (15.9.33027.88) found at:
npm ERR! gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community"
npm ERR! gyp ERR! find VS - found "Visual Studio C++ core features"
npm ERR! gyp ERR! find VS - found VC++ toolset: v141
npm ERR! gyp ERR! find VS - found Windows SDK: 10.0.17763.0
npm ERR! gyp ERR! find VS - does not match this Visual Studio Command Prompt
npm ERR! gyp ERR! find VS checking VS2017 (15.9.33027.88) found at:
npm ERR! gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools"
npm ERR! gyp ERR! find VS - found "Visual Studio C++ core features"
npm ERR! gyp ERR! find VS - found VC++ toolset: v141
npm ERR! gyp ERR! find VS - found Windows SDK: 10.0.17763.0
npm ERR! gyp ERR! find VS - does not match this Visual Studio Command Prompt
npm ERR! gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
npm ERR! gyp ERR! find VS looking for Visual Studio 2015
npm ERR! gyp ERR! find VS - not found
npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio
npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload.
npm ERR! gyp ERR! find VS For more information consult the documentation at:
npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to use
npm ERR! gyp ERR! stack at VisualStudioFinder.fail (C:\Users\Sergey\AppData\Roaming\nvm\v16.15.0\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:122:47)
npm ERR! gyp ERR! stack at C:\Users\Sergey\AppData\Roaming\nvm\v16.15.0\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:75:16
npm ERR! gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Users\Sergey\AppData\Roaming\nvm\v16.15.0\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:363:14)
npm ERR! gyp ERR! stack at C:\Users\Sergey\AppData\Roaming\nvm\v16.15.0\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:71:14
npm ERR! gyp ERR! stack at C:\Users\Sergey\AppData\Roaming\nvm\v16.15.0\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:384:16
npm ERR! gyp ERR! stack at C:\Users\Sergey\AppData\Roaming\nvm\v16.15.0\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
npm ERR! gyp ERR! stack at C:\Users\Sergey\AppData\Roaming\nvm\v16.15.0\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:406:5)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:527:28)
npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1092:16)
npm ERR! gyp ERR! System Windows_NT 10.0.22621
npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Sergey\AppData\Roaming\nvm\v16.15.0\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd C:\Users\Sergey\AppData\Roaming\nvm\v16.15.0\node_modules@vkontakte\vk-tunnel\node_modules\websocket
npm ERR! gyp ERR! node -v v16.15.0
npm ERR! gyp ERR! node-gyp -v v9.0.0
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Sergey\AppData\Local\npm-cache_logs\2022-12-07T18_53_56_734Z-debug-0.log`

Подскажите, пожалуйста, как все-таки установить туннель

ERROR: Пользователь не является создателем приложения

Приветствую!

Не совсем понятна политика данного кейса. Я - разработчик. Заказчик - создатель приложения. У меня к приложению полный доступ, я могу сделать с ним все что угодно. Но зато я не могу автоматически прокинуть ссылку в дев-url (еще раз, в ДЕВ, который видят в целом только опять же разработчики или руководители приложения).

Надеюсь это как-нибудь когда-нибудь решится. Ведь мини-аппы разрабатывают не только программисты-одиночки, (которые делают приложения для себя), но и компании, и программисты, работающие в связке "заказчик-исполнитель".

При запросах в сеть не обрабатываются ошибки с отсутствием соединения

Дополнительной проблемой является то, что используется сразу два модуля для запросов в сеть - axios и node-fetch.

Думаю при решении проблемы проще будет сначала перейти на один модуль для запросов в сеть, а затем написать для него враппер, который обрабатывает некоторые ошибки, связанные с соединением пользователя: ETIMEDOUT, ECONNRESET, ENOTFOUND и ENETUNREACH. Обработкой может быть, например, остановка запросов на 5 секунд, чтобы выждать появление соединения.

image

Не устанавливается библиотека

Не могу установить vk tunnel. Выдает такие ошибки:

npm ERR! code 1
npm ERR! path C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\websocket
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! bufferutil.cc
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan_callbacks.h(55,23): error C2039: "AccessorSignature": �� ���� 童��� "v8". [C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR! C:\Users\User\AppData\Local\node-gyp\Cache\20.12.1\include\node\v8.h(71,11):
npm ERR! �. ������� "v8"
npm ERR!
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan_callbacks.h(55,23): error C2065: AccessorSignature: ��������� �����䨪��� [C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR!
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan_callbacks.h(55,13): error C2923: v8::Local: "AccessorSignature" �� ���� �����⨬� ��㬥�⮬ ⨯� 蠡��� ��� ��ࠬ��� "T" [C:\Users\User\Desktop\My P
rojects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan_callbacks.h(55,23):
npm ERR! �. ������� "AccessorSignature"
npm ERR!
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan_callbacks.h(55,42): error C2955: "v8::Local": ��� �ᯮ�짮����� ����� 蠡��� �ॡ���� ᯨ᮪ ��㬥�⮢ 蠡��� [C:\Users\User\Desktop\My Projects\VK_Proje
cts\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR! C:\Users\User\AppData\Local\node-gyp\Cache\20.12.1\include\node\v8-local-handle.h(190,7):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,14): error C2955: "v8::Local": ��� �ᯮ�짮����� ����� 蠡��� �ॡ���� ᯨ᮪ ��㬥�⮢ 蠡��� [C:\Users\User\Desktop\My Projects\VK_Projects\cosm
ic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR! C:\Users\User\AppData\Local\node-gyp\Cache\20.12.1\include\node\v8-local-handle.h(190,7):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,34): error C2641: �� 㤠���� �뢥�� ��㬥��� 蠡���� ��� "v8::Local". [C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR!
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,34): error C2780: "v8::Local v8::Local(T *)": ��������� ��㬥��� 1 - 0 �।��⠢���� [C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR! C:\Users\User\AppData\Local\node-gyp\Cache\20.12.1\include\node\v8-local-handle.h(331,3):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,34): error C2780: "v8::Local v8::Local(v8::Local)": ��������� ��㬥��� 1 - 0 �।��⠢���� [C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR! C:\Users\User\AppData\Local\node-gyp\Cache\20.12.1\include\node\v8-local-handle.h(195,3):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,34): error C2783: "v8::Local v8::Local(void)": �� 㤠���� �뢥�� ��㬥�� 蠡��� ��� "T" [C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR! C:\Users\User\AppData\Local\node-gyp\Cache\20.12.1\include\node\v8-local-handle.h(192,3):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,34): error C2780: "v8::Local v8::Local(v8::Local)": ��������� ��㬥��� 1 - 0 �।��⠢���� [C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR! C:\Users\User\AppData\Local\node-gyp\Cache\20.12.1\include\node\v8-local-handle.h(190,7):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2535,6): error C2665: "v8::ObjectTemplate::SetAccessor": �� ���� ��ॣ�㦥���� �㭪�� �� ����� �८�ࠧ����� �� ⨯� ��㬥�⮢ [C:\Users\User\Desktop
My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR! C:\Users\User\AppData\Local\node-gyp\Cache\20.12.1\include\node\v8-template.h(816,8):
npm ERR! ����� ���� "void v8::ObjectTemplate::SetAccessor(v8::Localv8::Name,v8::AccessorNameGetterCallback,v8::AccessorNameSetterCallback,v8::Localv8::Value,v8::AccessControl,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)"
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2535,6):
npm ERR! "void v8::ObjectTemplate::SetAccessor(v8::Localv8::Name,v8::AccessorNameGetterCallback,v8::AccessorNameSetterCallback,v8::Localv8::Value,v8::AccessControl,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)": ���������� �८�ࠧ����� ��㬥�
� 7 �� "Nan::imp::Sig" � "v8::SideEffectType"
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2542,7):
npm ERR! ��� �믮������ ������� �८�ࠧ������ ��� ����㯭��� ������ �८�ࠧ������, ��।�������� ���짮��⥫��, ��� �맮� ������ ��
��������
npm ERR! C:\Users\User\AppData\Local\node-gyp\Cache\20.12.1\include\node\v8-template.h(809,8):
npm ERR! ��� "void v8::ObjectTemplate::SetAccessor(v8::Localv8::String,v8::AccessorGetterCallback,v8::AccessorSetterCallback,v8::Localv8::Value,v8::AccessControl,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)"
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2535,6):
npm ERR! "void v8::ObjectTemplate::SetAccessor(v8::Localv8::String,v8::AccessorGetterCallback,v8::AccessorSetterCallback,v8::Localv8::Value,v8::AccessControl,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)": ���������� �८�ࠧ����� ��㬥�� 2 ��
"Nan::imp::NativeGetter" � "v8::AccessorGetterCallback"
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2537,7):
npm ERR! ��� �८�ࠧ������ �ॡ���� reinterpret_cast, �ਢ������ � �⨫� � ��� �ਢ������ � �⨫� �㭪樨 � ��㣫�� ᪮����
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2535,6):
npm ERR! �� ����⪥ ᮯ��⠢��� ᯨ᮪ ��㬥�⮢ "(v8::Localv8::String, Nan::imp::NativeGetter, Nan::imp::NativeSetter, v8::Localv8::Object
, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)"
npm ERR!
npm ERR! validation.cc
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan_callbacks.h(55,23): error C2039: "AccessorSignature": �� ���� 童��� "v8". [C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR! C:\Users\User\AppData\Local\node-gyp\Cache\20.12.1\include\node\v8.h(71,11):
npm ERR! �. ������� "v8"
npm ERR!
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan_callbacks.h(55,23): error C2065: AccessorSignature: ��������� �����䨪��� [C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR!
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan_callbacks.h(55,13): error C2923: v8::Local: "AccessorSignature" �� ���� �����⨬� ��㬥�⮬ ⨯� 蠡��� ��� ��ࠬ��� "T" [C:\Users\User\Desktop\My P
rojects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan_callbacks.h(55,23):
npm ERR! �. ������� "AccessorSignature"
npm ERR!
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan_callbacks.h(55,42): error C2955: "v8::Local": ��� �ᯮ�짮����� ����� 蠡��� �ॡ���� ᯨ᮪ ��㬥�⮢ 蠡��� [C:\Users\User\Desktop\My Projects\VK_Proje
cts\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR! C:\Users\User\AppData\Local\node-gyp\Cache\20.12.1\include\node\v8-local-handle.h(190,7):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,14): error C2955: "v8::Local": ��� �ᯮ�짮����� ����� 蠡��� �ॡ���� ᯨ᮪ ��㬥�⮢ 蠡��� [C:\Users\User\Desktop\My Projects\VK_Projects\cosm
ic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR! C:\Users\User\AppData\Local\node-gyp\Cache\20.12.1\include\node\v8-local-handle.h(190,7):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,34): error C2641: �� 㤠���� �뢥�� ��㬥��� 蠡���� ��� "v8::Local". [C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR!
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,34): error C2780: "v8::Local v8::Local(T *)": ��������� ��㬥��� 1 - 0 �।��⠢���� [C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR! C:\Users\User\AppData\Local\node-gyp\Cache\20.12.1\include\node\v8-local-handle.h(331,3):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,34): error C2780: "v8::Local v8::Local(v8::Local)": ��������� ��㬥��� 1 - 0 �।��⠢���� [C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR! C:\Users\User\AppData\Local\node-gyp\Cache\20.12.1\include\node\v8-local-handle.h(195,3):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,34): error C2783: "v8::Local v8::Local(void)": �� 㤠���� �뢥�� ��㬥�� 蠡��� ��� "T" [C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR! C:\Users\User\AppData\Local\node-gyp\Cache\20.12.1\include\node\v8-local-handle.h(192,3):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,34): error C2780: "v8::Local v8::Local(v8::Local)": ��������� ��㬥��� 1 - 0 �।��⠢���� [C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR! C:\Users\User\AppData\Local\node-gyp\Cache\20.12.1\include\node\v8-local-handle.h(190,7):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2535,6): error C2665: "v8::ObjectTemplate::SetAccessor": �� ���� ��ॣ�㦥���� �㭪�� �� ����� �८�ࠧ����� �� ⨯� ��㬥�⮢ [C:\Users\User\Desktop
My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR! C:\Users\User\AppData\Local\node-gyp\Cache\20.12.1\include\node\v8-template.h(816,8):
npm ERR! ����� ���� "void v8::ObjectTemplate::SetAccessor(v8::Localv8::Name,v8::AccessorNameGetterCallback,v8::AccessorNameSetterCallback,v8::Localv8::Value,v8::AccessControl,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)"
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2535,6):
npm ERR! "void v8::ObjectTemplate::SetAccessor(v8::Localv8::Name,v8::AccessorNameGetterCallback,v8::AccessorNameSetterCallback,v8::Localv8::Value,v8::AccessControl,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)": ���������� �८�ࠧ����� ��㬥�
� 7 �� "Nan::imp::Sig" � "v8::SideEffectType"
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2542,7):
npm ERR! ��� �믮������ ������� �८�ࠧ������ ��� ����㯭��� ������ �८�ࠧ������, ��।�������� ���짮��⥫��, ��� �맮� ������ ��
��������
npm ERR! C:\Users\User\AppData\Local\node-gyp\Cache\20.12.1\include\node\v8-template.h(809,8):
npm ERR! ��� "void v8::ObjectTemplate::SetAccessor(v8::Localv8::String,v8::AccessorGetterCallback,v8::AccessorSetterCallback,v8::Localv8::Value,v8::AccessControl,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)"
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2535,6):
npm ERR! "void v8::ObjectTemplate::SetAccessor(v8::Localv8::String,v8::AccessorGetterCallback,v8::AccessorSetterCallback,v8::Localv8::Value,v8::AccessControl,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)": ���������� �८�ࠧ����� ��㬥�� 2 ��
"Nan::imp::NativeGetter" � "v8::AccessorGetterCallback"
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2537,7):
npm ERR! ��� �८�ࠧ������ �ॡ���� reinterpret_cast, �ਢ������ � �⨫� � ��� �ਢ������ � �⨫� �㭪樨 � ��㣫�� ᪮����
npm ERR! C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2535,6):
npm ERR! �� ����⪥ ᮯ��⠢��� ᯨ᮪ ��㬥�⮢ "(v8::Localv8::String, Nan::imp::NativeGetter, Nan::imp::NativeSetter, v8::Localv8::Object
, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)"
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp info find Python using Python version 3.12.2 found at "C:\Python312\python.exe"
npm ERR! gyp info find VS using VS2022 (17.9.34723.18) found at:
npm ERR! gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools"
npm ERR! gyp info find VS run with --verbose for detailed information
npm ERR! gyp info spawn C:\Python312\python.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args 'C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules\node-gyp\gyp\gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'msvs',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules\@VKontakte\vk-tunnel\node_modules\websocket\build\config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules\node-gyp\addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\Users\User\AppData\Local\node-gyp\Cache\20.12.1\include\node\common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=C:\Users\User\AppData\Local\node-gyp\Cache\20.12.1',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules\node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=C:\\Users\\User\\AppData\\Local\\node-gyp\\Cache\\20.12.1\\<(target_arch)\\node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules\@VKontakte\vk-tunnel\node_modules\websocket',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules\@VKontakte\vk-tunnel\node_modules\websocket\build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\MSBuild.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args 'build\binding.sln',
npm ERR! gyp info spawn args '/clp:Verbosity=minimal',
npm ERR! gyp info spawn args '/nologo',
npm ERR! gyp info spawn args '/p:Configuration=Release;Platform=x64'
npm ERR! gyp info spawn args ]
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\MSBuild.exe failed with exit code: 1
npm ERR! gyp ERR! stack at ChildProcess. (C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules\node-gyp\lib\build.js:209:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:518:28)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12)
npm ERR! gyp ERR! System Windows_NT 10.0.19045
npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd C:\Users\User\Desktop\My Projects\VK_Projects\cosmic_voyager\node_modules@vkontakte\vk-tunnel\node_modules\websocket
npm ERR! gyp ERR! node -v v20.12.1
npm ERR! gyp ERR! node-gyp -v v10.1.0
npm ERR! gyp ERR! not ok

Ошибка при запуске

При запуске:
vk-tunnel --insecure=0 --http-protocol=https --ws-protocol=wss --host='192.168.1.31' --port=3000

Получаю такую ошибку:

["2023-01-31T15:58:30.980Z"] ERROR: Connect Error: Error: Server responded with a non-101 status: 200 OK
Response Headers Follow:
server: kittenx
date: Tue, 31 Jan 2023 15:58:30 GMT
content-length: 0
connection: keep-alive
keep-alive: timeout=300

Пробовал много разных вариантов запуска, например:

vk-tunnel
vk-tunnel --port 3000

Проблема с коннектом к ВК. Есть идеи? Спасибо

Библиотека не устанавливается

Описание

Windows 10 Pro x64-based PC
Python version 3.12.2
Visual Studio 2022

node v20.11.1
npm 10.4.0

Версия vk-tunnel-client

0.1.4

Платформа

Windows

Шаги воспроизведения

npm install @vkontakte/vk-tunnel --include=dev

Ожидаемое поведение


Скриншоты

Доступна, но не ставится

2024-03-01_00-47-35

Код, который вызвал ошибку

npm ERR! code 1
npm ERR! path C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\websocket
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! bufferutil.cc
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan_callbacks.h(55,23): error C2039: "AccessorSignature": �� ���� 童��� "v8". [C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR! C:\Users\Alexandr\AppData\Local\node-gyp\Cache\20.11.1\include\node\v8.h(71,11):
npm ERR! �. ������� "v8"
npm ERR!
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan_callbacks.h(55,23): error C2065: AccessorSignature: ��������� �����䨪��� [C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR!
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan_callbacks.h(55,13): error C2923: v8::Local: "AccessorSignature" �� ���� �����⨬� ��㬥�⮬ ⨯� 蠡��� ��� ��ࠬ��� "T" [C:\Users\Alexandr\dev\vk-to
do\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan_callbacks.h(55,23):
npm ERR! �. ������� "AccessorSignature"
npm ERR!
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan_callbacks.h(55,42): error C2955: "v8::Local": ��� �ᯮ�짮����� ����� 蠡��� �ॡ���� ᯨ᮪ ��㬥�⮢ 蠡��� [C:\Users\Alexandr\dev\vk-todo\node_modules
@VKontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR! C:\Users\Alexandr\AppData\Local\node-gyp\Cache\20.11.1\include\node\v8-local-handle.h(190,7):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,14): error C2955: "v8::Local": ��� �ᯮ�짮����� ����� 蠡��� �ॡ���� ᯨ᮪ ��㬥�⮢ 蠡��� [C:\Users\Alexandr\dev\vk-todo\node_modules@vkontak
te\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR! C:\Users\Alexandr\AppData\Local\node-gyp\Cache\20.11.1\include\node\v8-local-handle.h(190,7):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,34): error C2641: �� 㤠���� �뢥�� ��㬥��� 蠡���� ��� "v8::Local". [C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR!
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,34): error C2780: "v8::Local v8::Local(T *)": ��������� ��㬥��� 1 - 0 �।��⠢���� [C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR! C:\Users\Alexandr\AppData\Local\node-gyp\Cache\20.11.1\include\node\v8-local-handle.h(331,3):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,34): error C2780: "v8::Local v8::Local(v8::Local)": ��������� ��㬥��� 1 - 0 �।��⠢���� [C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR! C:\Users\Alexandr\AppData\Local\node-gyp\Cache\20.11.1\include\node\v8-local-handle.h(195,3):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,34): error C2783: "v8::Local v8::Local(void)": �� 㤠���� �뢥�� ��㬥�� 蠡��� ��� "T" [C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR! C:\Users\Alexandr\AppData\Local\node-gyp\Cache\20.11.1\include\node\v8-local-handle.h(192,3):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,34): error C2780: "v8::Local v8::Local(v8::Local)": ��������� ��㬥��� 1 - 0 �।��⠢���� [C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR! C:\Users\Alexandr\AppData\Local\node-gyp\Cache\20.11.1\include\node\v8-local-handle.h(190,7):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2535,6): error C2665: "v8::ObjectTemplate::SetAccessor": �� ���� ��ॣ�㦥���� �㭪�� �� ����� �८�ࠧ����� �� ⨯� ��㬥�⮢ [C:\Users\Alexandr\dev\v
k-todo\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\bufferutil.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/bufferutil.cc")
npm ERR! C:\Users\Alexandr\AppData\Local\node-gyp\Cache\20.11.1\include\node\v8-template.h(816,8):
npm ERR! ����� ���� "void v8::ObjectTemplate::SetAccessor(v8::Localv8::Name,v8::AccessorNameGetterCallback,v8::AccessorNameSetterCallback,v8::Localv8::Value,v8::AccessControl,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)"
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2535,6):
npm ERR! "void v8::ObjectTemplate::SetAccessor(v8::Localv8::Name,v8::AccessorNameGetterCallback,v8::AccessorNameSetterCallback,v8::Localv8::Value,v8::AccessControl,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)": ���������� �८�ࠧ����� ��㬥�� 7 �� "Nan::imp::Sig" � "v8::SideEffectType"
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2542,7):
npm ERR! ��� �믮������ ������� �८�ࠧ������ ��� ����㯭��� ������ �८�ࠧ������, ��।�������� ���짮��⥫��, ���
�맮� ������ ����������
npm ERR! C:\Users\Alexandr\AppData\Local\node-gyp\Cache\20.11.1\include\node\v8-template.h(809,8):
npm ERR! ��� "void v8::ObjectTemplate::SetAccessor(v8::Localv8::String,v8::AccessorGetterCallback,v8::AccessorSetterCallback,v8::Localv8::Value,v8::AccessControl,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)"
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2535,6):
npm ERR! "void v8::ObjectTemplate::SetAccessor(v8::Localv8::String,v8::AccessorGetterCallback,v8::AccessorSetterCallback,v8::Localv8::Value,v8::AccessControl,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)": ���������� �८�ࠧ����� ��㬥�� 2 �� "Nan::imp::NativeGetter" � "v8::AccessorGetterCallback"
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2537,7):
npm ERR! ��� �८�ࠧ������ �ॡ���� reinterpret_cast, �ਢ������ � �⨫� � ��� �ਢ������ � �⨫� �㭪樨 � ��㣫�� ᪮�
���
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2535,6):
npm ERR! �� ����⪥ ᮯ��⠢��� ᯨ᮪ ��㬥�⮢ "(v8::Localv8::String, Nan::imp::NativeGetter, Nan::imp::NativeSetter, v8::Lo
calv8::Object, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)"
npm ERR!
npm ERR! validation.cc
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan_callbacks.h(55,23): error C2039: "AccessorSignature": �� ���� 童��� "v8". [C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR! C:\Users\Alexandr\AppData\Local\node-gyp\Cache\20.11.1\include\node\v8.h(71,11):
npm ERR! �. ������� "v8"
npm ERR!
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan_callbacks.h(55,23): error C2065: AccessorSignature: ��������� �����䨪��� [C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR!
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan_callbacks.h(55,13): error C2923: v8::Local: "AccessorSignature" �� ���� �����⨬� ��㬥�⮬ ⨯� 蠡��� ��� ��ࠬ��� "T" [C:\Users\Alexandr\dev\vk-to
do\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan_callbacks.h(55,23):
npm ERR! �. ������� "AccessorSignature"
npm ERR!
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan_callbacks.h(55,42): error C2955: "v8::Local": ��� �ᯮ�짮����� ����� 蠡��� �ॡ���� ᯨ᮪ ��㬥�⮢ 蠡��� [C:\Users\Alexandr\dev\vk-todo\node_modules
@VKontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR! C:\Users\Alexandr\AppData\Local\node-gyp\Cache\20.11.1\include\node\v8-local-handle.h(190,7):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,14): error C2955: "v8::Local": ��� �ᯮ�짮����� ����� 蠡��� �ॡ���� ᯨ᮪ ��㬥�⮢ 蠡��� [C:\Users\Alexandr\dev\vk-todo\node_modules@vkontak
te\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR! C:\Users\Alexandr\AppData\Local\node-gyp\Cache\20.11.1\include\node\v8-local-handle.h(190,7):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,34): error C2641: �� 㤠���� �뢥�� ��㬥��� 蠡���� ��� "v8::Local". [C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR!
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,34): error C2780: "v8::Local v8::Local(T *)": ��������� ��㬥��� 1 - 0 �।��⠢���� [C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR! C:\Users\Alexandr\AppData\Local\node-gyp\Cache\20.11.1\include\node\v8-local-handle.h(331,3):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,34): error C2780: "v8::Local v8::Local(v8::Local)": ��������� ��㬥��� 1 - 0 �।��⠢���� [C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR! C:\Users\Alexandr\AppData\Local\node-gyp\Cache\20.11.1\include\node\v8-local-handle.h(195,3):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,34): error C2783: "v8::Local v8::Local(void)": �� 㤠���� �뢥�� ��㬥�� 蠡��� ��� "T" [C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR! C:\Users\Alexandr\AppData\Local\node-gyp\Cache\20.11.1\include\node\v8-local-handle.h(192,3):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2509,34): error C2780: "v8::Local v8::Local(v8::Local)": ��������� ��㬥��� 1 - 0 �।��⠢���� [C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR! C:\Users\Alexandr\AppData\Local\node-gyp\Cache\20.11.1\include\node\v8-local-handle.h(190,7):
npm ERR! �. ������� "v8::Local"
npm ERR!
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2535,6): error C2665: "v8::ObjectTemplate::SetAccessor": �� ���� ��ॣ�㦥���� �㭪�� �� ����� �८�ࠧ����� �� ⨯� ��㬥�⮢ [C:\Users\Alexandr\dev\v
k-todo\node_modules@vkontakte\vk-tunnel\node_modules\websocket\build\validation.vcxproj]
npm ERR! (��������� ��室���� 䠩�� "../src/validation.cc")
npm ERR! C:\Users\Alexandr\AppData\Local\node-gyp\Cache\20.11.1\include\node\v8-template.h(816,8):
npm ERR! ����� ���� "void v8::ObjectTemplate::SetAccessor(v8::Localv8::Name,v8::AccessorNameGetterCallback,v8::AccessorNameSetterCallback,v8::Localv8::Value,v8::AccessControl,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)"
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2535,6):
npm ERR! "void v8::ObjectTemplate::SetAccessor(v8::Localv8::Name,v8::AccessorNameGetterCallback,v8::AccessorNameSetterCallback,v8::Localv8::Value,v8::AccessControl,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)": ���������� �८�ࠧ����� ��㬥�� 7 �� "Nan::imp::Sig" � "v8::SideEffectType"
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2542,7):
npm ERR! ��� �믮������ ������� �८�ࠧ������ ��� ����㯭��� ������ �८�ࠧ������, ��।�������� ���짮��⥫��, ���
�맮� ������ ����������
npm ERR! C:\Users\Alexandr\AppData\Local\node-gyp\Cache\20.11.1\include\node\v8-template.h(809,8):
npm ERR! ��� "void v8::ObjectTemplate::SetAccessor(v8::Localv8::String,v8::AccessorGetterCallback,v8::AccessorSetterCallback,v8::Localv8::Value,v8::AccessControl,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)"
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2535,6):
npm ERR! "void v8::ObjectTemplate::SetAccessor(v8::Localv8::String,v8::AccessorGetterCallback,v8::AccessorSetterCallback,v8::Localv8::Value,v8::AccessControl,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)": ���������� �८�ࠧ����� ��㬥�� 2 �� "Nan::imp::NativeGetter" � "v8::AccessorGetterCallback"
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2537,7):
npm ERR! ��� �८�ࠧ������ �ॡ���� reinterpret_cast, �ਢ������ � �⨫� � ��� �ਢ������ � �⨫� �㭪樨 � ��㣫�� ᪮�
���
npm ERR! C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\nan\nan.h(2535,6):
npm ERR! �� ����⪥ ᮯ��⠢��� ᯨ᮪ ��㬥�⮢ "(v8::Localv8::String, Nan::imp::NativeGetter, Nan::imp::NativeSetter, v8::Lo
calv8::Object, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)"
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp info find Python using Python version 3.12.2 found at "C:\Python312\python.exe"
npm ERR! gyp info find VS using VS2022 (17.9.34622.214) found at:
npm ERR! gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools"
npm ERR! gyp info find VS run with --verbose for detailed information
npm ERR! gyp info spawn C:\Python312\python.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args 'C:\Users\Alexandr\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'msvs',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\Users\Alexandr\dev\vk-todo\node_modules\@VKontakte\vk-tunnel\node_modules\websocket\build\config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\Users\Alexandr\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\Users\Alexandr\AppData\Local\node-gyp\Cache\20.11.1\include\node\common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=C:\Users\Alexandr\AppData\Local\node-gyp\Cache\20.11.1',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=C:\Users\Alexandr\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=C:\\Users\\Alexandr\\AppData\\Local\\node-gyp\\Cache\\20.11.1\\<(target_arch)\\node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=C:\Users\Alexandr\dev\vk-todo\node_modules\@VKontakte\vk-tunnel\node_modules\websocket',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'C:\Users\Alexandr\dev\vk-todo\node_modules\@VKontakte\vk-tunnel\node_modules\websocket\build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\MSBuild.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args 'build\binding.sln',
npm ERR! gyp info spawn args '/clp:Verbosity=minimal',
npm ERR! gyp info spawn args '/nologo',
npm ERR! gyp info spawn args '/p:Configuration=Release;Platform=x64'
npm ERR! gyp info spawn args ]
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\MSBuild.exe failed with exit code: 1
npm ERR! gyp ERR! stack at ChildProcess. (C:\Users\Alexandr\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:209:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:518:28)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12)
npm ERR! gyp ERR! System Windows_NT 10.0.19045
npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Alexandr\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd C:\Users\Alexandr\dev\vk-todo\node_modules@vkontakte\vk-tunnel\node_modules\websocket
npm ERR! gyp ERR! node -v v20.11.1
npm ERR! gyp ERR! node-gyp -v v10.0.1
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: C:\Users\Alexandr\AppData\Local\npm-cache_logs\2024-02-29T21_59_42_435Z-debug-0.log

cannot establish a connection to the wss server

Запускаю WS - сервер:

const http = require('http');

// Spinning the http server and the WebSocket server.
const server = http.createServer();
const wsServer = new WebSocketServer({ server });
const port = 8000;
server.listen(port, () => {
  console.log(`WebSocket server is running on port ${port}`);
});
// A new client connection request received
wsServer.on('connection', function(connection) {
  console.log('Recieved a new connection');

  connection.on('message', (message) => console.log(message.toString()));
  // User disconnected
  connection.on('close', () => {
    console.log('disconnected');
  });
});

после чего в консоли браузера пишу:
let webSocket = new WebSocket('ws://localhost:8000/');
и всё прекрасно работает.

Однако, если я запущу

vk-tunnel --port=8000

и после этого в консоли браузера напишу тоже самое (только с url от vk-tunnel, начиная с wss:// вместо https://), получу
Firefox can't establish a connection to the server at wss://(url).

При этом, если запустить vk-tunnel с export LOGLEVEL=debug, то становится понятно, что vk-tunnel-client:

  1. принимает запрос на connection upgrade со стороны vk и передаёт его локальному серверу
  2. принимает ответ (101) и передаёт его в vk.
    Однако, сервер vk-tunnel присылает браузеру 520 вместо ответа.

Не устанавливается @vkontakte/vk-tunnel на виндовс

Не понимаю в чем проблема... Уже все перепробовал. Устанавливал разные версий питона, ноде жс. с++ заново накатывал. Итоге ничего не помогает

C:\Users\Хацкер>npm install @vkontakte/vk-tunnel -g
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup [
npm WARN cleanup 'C:\Users\Хацкер\AppData\Roaming\npm\node_modules\@VKontakte\vk-tunnel',
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\Хацкер\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\resolve\test\resolver\without_basedir'] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: 'EPERM',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'C:\Users\Хацкер\AppData\Roaming\npm\node_modules\@VKontakte\vk-tunnel\node_modules\resolve\test\resolver\without_basedir'
npm WARN cleanup }
npm WARN cleanup ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path C:\Users\Хацкер\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\websocket
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration
npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON
npm ERR! gyp ERR! find Python checking if the py launcher can be used to find Python 3
npm ERR! gyp ERR! find Python - executable path is "C:\Users\������\AppData\Local\Programs\Python\Python312\python.exe"
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Users\������\AppData\Local\Programs\Python\Python312\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if "python3" can be used
npm ERR! gyp ERR! find Python - executable path is ""
npm ERR! gyp ERR! find Python - "" could not be run
npm ERR! gyp ERR! find Python checking if "python" can be used
npm ERR! gyp ERR! find Python - executable path is "C:\Users\������\AppData\Local\Programs\Python\Python312\python.exe"
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Users\������\AppData\Local\Programs\Python\Python312\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\Хацкер\AppData\Local\Programs\Python\Python311\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Users\Хацкер\AppData\Local\Programs\Python\Python311\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python311\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Program Files\Python311\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\Хацкер\AppData\Local\Programs\Python\Python311-32\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Users\Хацкер\AppData\Local\Programs\Python\Python311-32\python.exe" could not be runnpm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python311-32\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Program Files\Python311-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python311-32\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python311-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\Хацкер\AppData\Local\Programs\Python\Python310\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Users\Хацкер\AppData\Local\Programs\Python\Python310\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python310\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Program Files\Python310\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\Хацкер\AppData\Local\Programs\Python\Python310-32\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Users\Хацкер\AppData\Local\Programs\Python\Python310-32\python.exe" could not be runnpm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python310-32\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Program Files\Python310-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python310-32\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python310-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\Хацкер\AppData\Local\Programs\Python\Python39\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Users\Хацкер\AppData\Local\Programs\Python\Python39\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python39\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Program Files\Python39\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\Хацкер\AppData\Local\Programs\Python\Python39-32\python.exenpm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Users\Хацкер\AppData\Local\Programs\Python\Python39-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python39-32\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Program Files\Python39-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python39-32\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python39-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\Хацкер\AppData\Local\Programs\Python\Python38\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Users\Хацкер\AppData\Local\Programs\Python\Python38\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python38\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Program Files\Python38\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\Хацкер\AppData\Local\Programs\Python\Python38-32\python.exenpm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Users\Хацкер\AppData\Local\Programs\Python\Python38-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python38-32\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Program Files\Python38-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python38-32\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python38-32\python.exe" could not be run
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! find Python **********************************************************
npm ERR! gyp ERR! find Python You need to install the latest version of Python.
npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
npm ERR! gyp ERR! find Python you can try one of the following options:
npm ERR! gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe"
npm ERR! gyp ERR! find Python (accepted by both node-gyp and npm)
npm ERR! gyp ERR! find Python - Set the environment variable PYTHON
npm ERR! gyp ERR! find Python - Set the npm configuration variable python:
npm ERR! gyp ERR! find Python npm config set python "C:\Path\To\python.exe"
npm ERR! gyp ERR! find Python For more information consult the documentation at:
npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
npm ERR! gyp ERR! find Python **********************************************************
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Could not find any Python installation to use
npm ERR! gyp ERR! stack at PythonFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:306:11)
npm ERR! gyp ERR! stack at PythonFinder.findPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:164:17)
npm ERR! gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
npm ERR! gyp ERR! stack at async configure (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:23:18)
npm ERR! gyp ERR! stack at async run (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js:81:18)
npm ERR! gyp ERR! System Windows_NT 10.0.19045
npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd C:\Users\Хацкер\AppData\Roaming\npm\node_modules@vkontakte\vk-tunnel\node_modules\websocket
npm ERR! gyp ERR! node -v v20.11.0
npm ERR! gyp ERR! node-gyp -v v10.0.1
npm ERR! gyp ERR! not ok

@vkontakte/vk-tunnel не устанавливается ни на Windows 10, ни на Ubuntu

В обоих случаях я получаю примерно одинаковый по содержанию лог (правда на винде весь непосредственный текст ошибок ещё и крякозябрами идёт из-за проблем с кодировкой). Час пытался заставить работать на винде, увидел строку про проблемы с Windows в #34 и решил попробовать Ubuntu 22.04 -- без толку.

Шёл строго по гайду с портала VK Developers, сам проект запустился нормально -- просто не ставится эта библиотека.

npm ERR! code 1
npm ERR! path /mnt/01D909CBF70B6330/Projects/VK Mini Apps/Random Post/node_modules/@vkontakte/vk-tunnel/node_modules/websocket
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! make: Entering directory '/mnt/01D909CBF70B6330/Projects/VK Mini Apps/Random Post/node_modules/@vkontakte/vk-tunnel/node_modules/websocket/build'
npm ERR!   CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
npm ERR! make: Leaving directory '/mnt/01D909CBF70B6330/Projects/VK Mini Apps/Random Post/node_modules/@vkontakte/vk-tunnel/node_modules/websocket/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | linux | x64
npm ERR! gyp info find Python using Python version 3.10.12 found at "/usr/bin/python3"
npm ERR! gyp http GET https://nodejs.org/download/release/v20.11.1/node-v20.11.1-headers.tar.gz
npm ERR! gyp http 200 https://nodejs.org/download/release/v20.11.1/node-v20.11.1-headers.tar.gz
npm ERR! gyp http GET https://nodejs.org/download/release/v20.11.1/SHASUMS256.txt
npm ERR! gyp http 200 https://nodejs.org/download/release/v20.11.1/SHASUMS256.txt
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/mnt/01D909CBF70B6330/Projects/VK Mini Apps/Random Post/node_modules/@vkontakte/vk-tunnel/node_modules/websocket/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/root/.cache/node-gyp/20.11.1/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/20.11.1',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/20.11.1/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/mnt/01D909CBF70B6330/Projects/VK Mini Apps/Random Post/node_modules/@vkontakte/vk-tunnel/node_modules/websocket',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! In file included from ../../nan/nan.h:176,
npm ERR!                  from ../src/bufferutil.cc:17:
npm ERR! ../../nan/nan_callbacks.h:55:23: error: ‘AccessorSignature’ is not a member of ‘v8’
npm ERR!    55 | typedef v8::Local<v8::AccessorSignature> Sig;
npm ERR!       |                       ^~~~~~~~~~~~~~~~~
npm ERR! ../../nan/nan_callbacks.h:55:40: error: template argument 1 is invalid
npm ERR!    55 | typedef v8::Local<v8::AccessorSignature> Sig;
npm ERR!       |                                        ^
npm ERR! In file included from ../src/bufferutil.cc:17:
npm ERR! ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
npm ERR! ../../nan/nan.h:2294:7: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
npm ERR!  2294 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
npm ERR!       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../../nan/nan.h: In function ‘void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)’:
npm ERR! ../../nan/nan.h:2535:19: error: no matching function for call to ‘v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>&, void (*&)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&), void (*&)(v8::Local<v8::Name>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&), v8::Local<v8::Object>&, v8::AccessControl&, v8::PropertyAttribute&, Nan::imp::Sig&)’
npm ERR!  2535 |   tpl->SetAccessor(
npm ERR!       |   ~~~~~~~~~~~~~~~~^
npm ERR!  2536 |       name
npm ERR!       |       ~~~~         
npm ERR!  2537 |     , getter_
npm ERR!       |     ~~~~~~~~~      
npm ERR!  2538 |     , setter_
npm ERR!       |     ~~~~~~~~~      
npm ERR!  2539 |     , obj
npm ERR!       |     ~~~~~          
npm ERR!  2540 |     , settings
npm ERR!       |     ~~~~~~~~~~     
npm ERR!  2541 |     , attribute
npm ERR!       |     ~~~~~~~~~~~    
npm ERR!  2542 |     , signature);
npm ERR!       |     ~~~~~~~~~~~~   
npm ERR! In file included from /root/.cache/node-gyp/20.11.1/include/node/v8-function.h:15,
npm ERR!                  from /root/.cache/node-gyp/20.11.1/include/node/v8.h:33,
npm ERR!                  from ../src/bufferutil.cc:8:
npm ERR! /root/.cache/node-gyp/20.11.1/include/node/v8-template.h:809:8: note: candidate: ‘void v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>, v8::AccessorGetterCallback, v8::AccessorSetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)’
npm ERR!   809 |   void SetAccessor(
npm ERR!       |        ^~~~~~~~~~~
npm ERR! /root/.cache/node-gyp/20.11.1/include/node/v8-template.h:814:22: note:   no known conversion for argument 7 from ‘Nan::imp::Sig’ {aka ‘int’} to ‘v8::SideEffectType’
npm ERR!   814 |       SideEffectType getter_side_effect_type = SideEffectType::kHasSideEffect,
npm ERR!       |       ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /root/.cache/node-gyp/20.11.1/include/node/v8-template.h:816:8: note: candidate: ‘void v8::ObjectTemplate::SetAccessor(v8::Local<v8::Name>, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)’
npm ERR!   816 |   void SetAccessor(
npm ERR!       |        ^~~~~~~~~~~
npm ERR! /root/.cache/node-gyp/20.11.1/include/node/v8-template.h:821:22: note:   no known conversion for argument 7 from ‘Nan::imp::Sig’ {aka ‘int’} to ‘v8::SideEffectType’
npm ERR!   821 |       SideEffectType getter_side_effect_type = SideEffectType::kHasSideEffect,
npm ERR!       |       ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! In file included from ../src/bufferutil.cc:9:
npm ERR! ../src/bufferutil.cc: At global scope:
npm ERR! /root/.cache/node-gyp/20.11.1/include/node/node.h:1172:7: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
npm ERR!  1172 |       (node::addon_register_func) (regfunc),                          \
npm ERR!       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /root/.cache/node-gyp/20.11.1/include/node/node.h:1206:3: note: in expansion of macro ‘NODE_MODULE_X’
npm ERR!  1206 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
npm ERR!       |   ^~~~~~~~~~~~~
npm ERR! ../src/bufferutil.cc:121:1: note: in expansion of macro ‘NODE_MODULE’
npm ERR!   121 | NODE_MODULE(bufferutil, init)
npm ERR!       | ^~~~~~~~~~~
npm ERR! ../src/bufferutil.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BufferUtil::Mask(Nan::NAN_METHOD_ARGS_TYPE)’:
npm ERR! ../src/bufferutil.cc:103:39: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   103 |       case 3: *((unsigned char*)to+2) = *((unsigned char*)from+2) ^ *((unsigned char*)mask+2);
npm ERR!       |               ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../src/bufferutil.cc:104:7: note: here
npm ERR!   104 |       case 2: *((unsigned char*)to+1) = *((unsigned char*)from+1) ^ *((unsigned char*)mask+1);
npm ERR!       |       ^~~~
npm ERR! ../src/bufferutil.cc:104:39: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   104 |       case 2: *((unsigned char*)to+1) = *((unsigned char*)from+1) ^ *((unsigned char*)mask+1);
npm ERR!       |               ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../src/bufferutil.cc:105:7: note: here
npm ERR!   105 |       case 1: *((unsigned char*)to  ) = *((unsigned char*)from  ) ^ *((unsigned char*)mask);
npm ERR!       |       ^~~~
npm ERR! ../src/bufferutil.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BufferUtil::Unmask(Nan::NAN_METHOD_ARGS_TYPE)’:
npm ERR! ../src/bufferutil.cc:78:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!    78 |       case 3: *((unsigned char*)from+2) = *((unsigned char*)from+2) ^ ((unsigned char*)mask)[2];
npm ERR!       |               ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../src/bufferutil.cc:79:7: note: here
npm ERR!    79 |       case 2: *((unsigned char*)from+1) = *((unsigned char*)from+1) ^ ((unsigned char*)mask)[1];
npm ERR!       |       ^~~~
npm ERR! ../src/bufferutil.cc:79:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!    79 |       case 2: *((unsigned char*)from+1) = *((unsigned char*)from+1) ^ ((unsigned char*)mask)[1];
npm ERR!       |               ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../src/bufferutil.cc:80:7: note: here
npm ERR!    80 |       case 1: *((unsigned char*)from  ) = *((unsigned char*)from  ) ^ ((unsigned char*)mask)[0];
npm ERR!       |       ^~~~
npm ERR! make: *** [bufferutil.target.mk:109: Release/obj.target/bufferutil/src/bufferutil.o] Error 1
npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
npm ERR! gyp ERR! System Linux 6.2.0-32-generic
npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /mnt/01D909CBF70B6330/Projects/VK Mini Apps/Random Post/node_modules/@vkontakte/vk-tunnel/node_modules/websocket
npm ERR! gyp ERR! node -v v20.11.1
npm ERR! gyp ERR! node-gyp -v v10.0.1
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-02-19T18_10_29_575Z-debug-0.log

Запросы теряют данные

Некоторые запросы с кодировкой отличной от UTF-8 передаются неправильно, итоговые данные запроса содержат ef bf bd

Решение проблемы с установкой пакета на Windows

Поставьте Visual Studio - проблемы как рукой снимет. node-gyp нужен компилятор, чтобы пересобрать себя из исходников.

Он же буржуйским языком говорит ошибку:
Не установлена переменная msvs_version (в которой должна храниться версия Visual Studio).
Тогда пытается прочитать переменную VCINSTALLDIR (в которой должен быть путь к папке установленной Visual Studio) и там неудача.
Говорит, что ни Visual Studio 2017+ ни Visual Studio 2015 не установлено. Более старые - не подойдут.

  1. Скачайте установщик Visual Studio
  2. Запустите установщик.
  3. Установите флажок Разработка классических приложений на C++.
  4. Нажмите кнопку Установить. Дождитесь окончания установки.
  5. Откройте командную строку и выполните команду:
npm config set msvs_version 2017

Готово..

Зачем устанавливать C++?

Модули, написанные на С++, используются в библиотеках ВКонтакте. Для компиляции кода на C++ используется node-gyp, который устанавливается вместе с Node.js и может вызывать ошибки, если C++ не установлен.

[Bug]: Error: socket hang up

Описание

Начиная с 0.1.7 при открытии полученной ссылки вылезает ошибка в консоли Error: socket hang up.
Раньше всё работало.

Версия vk-tunnel-client

0.1.7

Платформа

Windows

Шаги воспроизведения

  1. Запустить проект по адресу https://localhost:5173/ через vite 5 и плагин @vitejs/plugin-basic-ssl

  2. Заполнить vk-tunnel-config.json и запустить команду vk-tunnel --host=localhost --timeout=10000

{
  "app_id": "51658481",
  "endpoints": [
    "mobile",
    "mvk",
    "web"
  ],
  "port": "5173",
  "http-protocol": "https",
  "insecure": "1" // 0 тоже не работает
}
  1. открыть полученную ссылку в любом месте (из приложения или напрямую - не важно, ошибка одна)

Ожидаемое поведение

Ошибки не должно быть и веб приложение должно загружаться.

Скриншоты

image

Код, который вызвал ошибку

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.