I have forge CLI 5.0.0, and when I tried to install forge/tunnel, I got these errors:
C:\KC\Workspace\CloudPlugin>npm install -g @forge/tunnel
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@forge/runtime@2.3.0',
npm WARN EBADENGINE required: { node: '^14' },
npm WARN EBADENGINE current: { node: 'v16.15.0', npm: '8.5.5' }
npm WARN EBADENGINE }
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup [
npm WARN cleanup 'C:\\Users\\IGS\\AppData\\Roaming\\npm\\node_modules\\@forge\\tunnel\\node_modules',
npm WARN cleanup [Error: EPERM: operation not permitted, unlink 'C:\Users\IGS\AppData\Roaming\npm\node_modules\@forge\tunnel\node_modules\es5-ext\_postinstall.js'] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: 'EPERM',
npm WARN cleanup syscall: 'unlink',
npm WARN cleanup path: 'C:\\Users\\IGS\\AppData\\Roaming\\npm\\node_modules\\@forge\\tunnel\\node_modules\\es5-ext\\_postinstall.js'
npm WARN cleanup }
npm WARN cleanup ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path C:\Users\IGS\AppData\Roaming\npm\node_modules\@forge\tunnel\node_modules\@forge\isolated-vm
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-gyp rebuild --release -j 4
npm ERR! cl : command line warning D9025: overriding '/GR-' with '/GR' [C:\Users\IGS\AppData\Roaming\npm\node_modules\@forge\tunnel\node_modules\@forge\isolated-vm\build\isolated_vm.vcxproj]
npm ERR! external_copy.cc
npm ERR! cl : command line warning D9025: overriding '/GR-' with '/GR' [C:\Users\IGS\AppData\Roaming\npm\node_modules\@forge\tunnel\node_modules\@forge\isolated-vm\build\nortti.vcxproj]
npm ERR! serializer_nortti.cc
npm ERR! cl : command line warning D9025: overriding '/GR-' with '/GR' [C:\Users\IGS\AppData\Roaming\npm\node_modules\@forge\tunnel\node_modules\@forge\isolated-vm\build\nortti.vcxproj]
npm ERR! allocator_nortti.cc
npm ERR! cl : command line warning D9025: overriding '/GR-' with '/GR' [C:\Users\IGS\AppData\Roaming\npm\node_modules\@forge\tunnel\node_modules\@forge\isolated-vm\build\isolated_vm.vcxproj]
npm ERR! serializer.cc
npm ERR! C:\Users\IGS\AppData\Roaming\npm\node_modules\@forge\tunnel\node_modules\@forge\isolated-vm\src\isolate\allocator_nortti.cc(24,36): warning C4146: unary minus operator applied to unsigned type, result still unsigned [C:\Users\IGS\AppData\Roaming\npm\node_modules\@forge\tunnel\node_modules\@forge\isolated-vm\build\nortti.vcxproj]
npm ERR! cl : command line warning D9025: overriding '/GR-' with '/GR' [C:\Users\IGS\AppData\Roaming\npm\node_modules\@forge\tunnel\node_modules\@forge\isolated-vm\build\nortti.vcxproj]
npm ERR! win_delay_load_hook.cc
npm ERR! cl : command line warning D9025: overriding '/GR-' with '/GR' [C:\Users\IGS\AppData\Roaming\npm\node_modules\@forge\tunnel\node_modules\@forge\isolated-vm\build\isolated_vm.vcxproj]
npm ERR! serializer_nortti.cc
npm ERR! cl : command line warning D9025: overriding '/GR-' with '/GR' [C:\Users\IGS\AppData\Roaming\npm\node_modules\@forge\tunnel\node_modules\@forge\isolated-vm\build\isolated_vm.vcxproj]
npm ERR! string.cc
npm ERR! cl : command line warning D9025: overriding '/GR-' with '/GR' [C:\Users\IGS\AppData\Roaming\npm\node_modules\@forge\tunnel\node_modules\@forge\isolated-vm\build\isolated_vm.vcxproj]
npm ERR! allocator_nortti.cc
npm ERR! nortti.vcxproj -> C:\Users\IGS\AppData\Roaming\npm\node_modules\@forge\tunnel\node_modules\@forge\isolated-vm\build\Release\\nortti.lib
npm ERR! C:\Users\IGS\AppData\Roaming\npm\node_modules\@forge\tunnel\node_modules\@forge\isolated-vm\src\isolate\allocator_nortti.cc(24,36): warning C4146: unary minus operator applied to unsigned type, result still unsigned [C:\Users\IGS\AppData\Roaming\npm\node_modules\@forge\tunnel\node_modules\@forge\isolated-vm\build\isolated_vm.vcxproj]
npm ERR! cl : command line warning D9025: overriding '/GR-' with '/GR' [C:\Users\IGS\AppData\Roaming\npm\node_modules\@forge\tunnel\node_modules\@forge\isolated-vm\build\isolated_vm.vcxproj]
npm ERR! environment.cc
npm ERR! C:\Users\IGS\AppData\Roaming\npm\node_modules\@forge\tunnel\node_modules\@forge\isolated-vm\src\isolate\environment.cc(343,57): error C2668: 'v8::Isolate::SetHostImportModuleDynamicallyCallback': ambiguous call to overloaded function [C:\Users\IGS\AppData\Roaming\npm\node_modules\@forge\tunnel\node_modules\@forge\isolated-vm\build\isolated_vm.vcxproj]
npm ERR! C:\Users\IGS\AppData\Local\node-gyp\Cache\16.15.0\include\node\v8.h(8990,8): message : could be 'void v8::Isolate::SetHostImportModuleDynamicallyCallback(v8::HostImportModuleDynamicallyWithImportAssertionsCallback)' [C:\Users\IGS\AppData\Roaming\npm\node_modules\@forge\tunnel\node_modules\@forge\isolated-vm\build\isolated_vm.vcxproj]
npm ERR! C:\Users\IGS\AppData\Local\node-gyp\Cache\16.15.0\include\node\v8.h(8983,8): message : or 'void v8::Isolate::SetHostImportModuleDynamicallyCallback(v8::HostImportModuleDynamicallyCallback)' [C:\Users\IGS\AppData\Roaming\npm\node_modules\@forge\tunnel\node_modules\@forge\isolated-vm\build\isolated_vm.vcxproj]
npm ERR! C:\Users\IGS\AppData\Roaming\npm\node_modules\@forge\tunnel\node_modules\@forge\isolated-vm\src\isolate\environment.cc(343,57): message : while trying to match the argument list '(nullptr)' [C:\Users\IGS\AppData\Roaming\npm\node_modules\@forge\tunnel\node_modules\@forge\isolated-vm\build\isolated_vm.vcxproj]
npm ERR! C:\Users\IGS\AppData\Roaming\npm\node_modules\@forge\tunnel\node_modules\@forge\isolated-vm\src\isolate\environment.cc(448,11): error C2039: 'RunMicrotasks': is not a member of 'v8::Isolate' [C:\Users\IGS\AppData\Roaming\npm\node_modules\@forge\tunnel\node_modules\@forge\isolated-vm\build\isolated_vm.vcxproj]
npm ERR! C:\Users\IGS\AppData\Local\node-gyp\Cache\16.15.0\include\node\v8-platform.h(18): message : see declaration of 'v8::Isolate' [C:\Users\IGS\AppData\Roaming\npm\node_modules\@forge\tunnel\node_modules\@forge\isolated-vm\build\isolated_vm.vcxproj]
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.0.0
npm ERR! gyp info using node@16.15.0 | win32 | x64
npm ERR! gyp info find Python using Python version 3.10.6 found at "C:\Users\IGS\AppData\Local\Programs\Python\Python310\python.exe"
npm ERR! gyp info find VS using VS2022 (17.3.32825.248) 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\IGS\AppData\Local\Programs\Python\Python310\python.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args 'C:\\Program Files\\nodejs\\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\\IGS\\AppData\\Roaming\\npm\\node_modules\\@forge\\tunnel\\node_modules\\@forge\\isolated-vm\\build\\config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\\Users\\IGS\\AppData\\Local\\node-gyp\\Cache\\16.15.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\\IGS\\AppData\\Local\\node-gyp\\Cache\\16.15.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=C:\\\\Users\\\\IGS\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\16.15.0\\\\<(target_arch)\\\\node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=C:\\Users\\IGS\\AppData\\Roaming\\npm\\node_modules\\@forge\\tunnel\\node_modules\\@forge\\isolated-vm',
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\\IGS\\AppData\\Roaming\\npm\\node_modules\\@forge\\tunnel\\node_modules\\@forge\\isolated-vm\\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 '/m:4'
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.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:527:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Windows_NT 10.0.19044
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" "--release" "-j" "4"
npm ERR! gyp ERR! cwd C:\Users\IGS\AppData\Roaming\npm\node_modules\@forge\tunnel\node_modules\@forge\isolated-vm
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\IGS\AppData\Local\npm-cache\_logs\2022-08-31T08_45_25_505Z-debug-0.log
C:\KC\Workspace\CloudPlugin>
The JavaScript _postinstall.js was marked as malware by CheckPoint endpoint security:
Being able to use tunnel without Docker would be VERY attractive. Docker requires Hyper-V, and Hyper-V messes with VirtualBox, making VM guests extremely slow and unstable. To turn Hyper-V on and off you need to reboot and that’s just annoying.