Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to build zeromq using Visual Studio 2022 #490

Closed
liudonghua123 opened this issue Nov 11, 2021 · 5 comments
Closed

Failure to build zeromq using Visual Studio 2022 #490

liudonghua123 opened this issue Nov 11, 2021 · 5 comments
Labels

Comments

@liudonghua123
Copy link

Describe the bug
When I tried to execute npm i -g ijavascript jp-babel --loglevel silly.

I got the following errors.

npm ERR! gyp verb find VS msvs_version was set from command line or npm config
npm ERR! gyp verb find VS - looking for Visual Studio version 2019
npm ERR! gyp verb find VS VCINSTALLDIR not set, not running in VS Command Prompt
npm ERR! gyp sill find VS Running C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe [
npm ERR! gyp sill find VS   '-ExecutionPolicy',
npm ERR! gyp sill find VS   'Unrestricted',
npm ERR! gyp sill find VS   '-NoProfile',
npm ERR! gyp sill find VS   '-Command',
npm ERR! gyp sill find VS   "&{Add-Type -Path 'C:\\Users\\Liu.D.H\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\lib\\Find-VisualStudio.cs';[VisualStudioConfiguration.Main]::PrintJson()}"
npm ERR! gyp sill find VS ]
npm ERR! gyp sill find VS PS stderr = ""
npm ERR! gyp sill find VS processing installation: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
npm ERR! gyp sill find VS - version match = ["16.11.31829.152","16","11"]
npm ERR! gyp sill find VS - found VC.MSBuild.Base
npm ERR! gyp sill find VS - found VC.Tools.x86.x64
npm ERR! gyp sill find VS - found Win10SDK: 19041
npm ERR! gyp sill find VS processing installation: "C:\Program Files\Microsoft Visual Studio\2022\Community"
npm ERR! gyp sill find VS - version match = ["17.0.31903.59","17","0"]
npm ERR! gyp sill find VS - unsupported version: 17
npm ERR! gyp sill find VS - found VC.Tools.x86.x64
npm ERR! gyp sill find VS - invalid versionYear: undefined
npm ERR! gyp sill find VS - found Win10SDK: 19041
npm ERR! gyp sill find VS vsInfo: [
npm ERR! gyp sill find VS   {
npm ERR! gyp sill find VS     version: '16.11.31829.152',
npm ERR! gyp sill find VS     versionMajor: 16,
npm ERR! gyp sill find VS     versionMinor: 11,
npm ERR! gyp sill find VS     versionYear: 2019,
npm ERR! gyp sill find VS     path: 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community',
npm ERR! gyp sill find VS     msBuild: 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\Current\\Bin\\MSBuild.exe',
npm ERR! gyp sill find VS     toolset: 'v142',
npm ERR! gyp sill find VS     sdk: '10.0.19041.0'
npm ERR! gyp sill find VS   },
npm ERR! gyp sill find VS   {
npm ERR! gyp sill find VS     path: 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community',
npm ERR! gyp sill find VS     msBuild: null,
npm ERR! gyp sill find VS     toolset: null,
npm ERR! gyp sill find VS     sdk: '10.0.19041.0'
npm ERR! gyp sill find VS   }
npm ERR! gyp sill find VS ]
npm ERR! gyp verb find VS unknown version "undefined" found at "C:\Program Files\Microsoft Visual Studio\2022\Community"
npm ERR! gyp verb find VS checking VS2019 (16.11.31829.152) found at:
npm ERR! gyp verb find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
npm ERR! gyp verb find VS - found "Visual Studio C++ core features"
npm ERR! gyp verb find VS - found VC++ toolset: v142
npm ERR! gyp verb find VS - found Windows SDK: 10.0.19041.0
npm ERR! gyp info find VS using VS2019 (16.11.31829.152) found at:
npm ERR! gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
npm ERR! gyp info find VS run with --verbose for detailed information
npm ERR! gyp verb build/config.gypi creating config file
npm ERR! gyp sill build/config.gypi {
npm ERR! gyp sill build/config.gypi   target_defaults: {
npm ERR! gyp sill build/config.gypi     cflags: [],
npm ERR! gyp sill build/config.gypi     default_configuration: 'Release',
npm ERR! gyp sill build/config.gypi     defines: [],
npm ERR! gyp sill build/config.gypi     include_dirs: [],
npm ERR! gyp sill build/config.gypi     libraries: [],
npm ERR! gyp sill build/config.gypi     msbuild_toolset: 'v142',
npm ERR! gyp sill build/config.gypi     msvs_windows_target_platform_version: '10.0.19041.0'
npm ERR! gyp sill build/config.gypi   },
npm ERR! gyp sill build/config.gypi   variables: {
npm ERR! gyp sill build/config.gypi     asan: 0,
npm ERR! gyp sill build/config.gypi     coverage: false,
npm ERR! gyp sill build/config.gypi     dcheck_always_on: 0,
npm ERR! gyp sill build/config.gypi     debug_nghttp2: false,
npm ERR! gyp sill build/config.gypi     debug_node: false,
npm ERR! gyp sill build/config.gypi     enable_lto: false,
npm ERR! gyp sill build/config.gypi     enable_pgo_generate: false,
npm ERR! gyp sill build/config.gypi     enable_pgo_use: false,
npm ERR! gyp sill build/config.gypi     error_on_warn: false,
npm ERR! gyp sill build/config.gypi     force_dynamic_crt: 0,
npm ERR! gyp sill build/config.gypi     host_arch: 'x64',
npm ERR! gyp sill build/config.gypi     icu_data_in: '..\\..\\deps\\icu-tmp\\icudt69l.dat',
npm ERR! gyp sill build/config.gypi     icu_endianness: 'l',
npm ERR! gyp sill build/config.gypi     icu_gyp_path: 'tools/icu/icu-generic.gyp',
npm ERR! gyp sill build/config.gypi     icu_path: 'deps/icu-small',
npm ERR! gyp sill build/config.gypi     icu_small: false,
npm ERR! gyp sill build/config.gypi     icu_ver_major: '69',
npm ERR! gyp sill build/config.gypi     is_debug: 0,
npm ERR! gyp sill build/config.gypi     llvm_version: '0.0',
npm ERR! gyp sill build/config.gypi     napi_build_version: '8',
npm ERR! gyp sill build/config.gypi     nasm_version: '2.14',
npm ERR! gyp sill build/config.gypi     node_byteorder: 'little',
npm ERR! gyp sill build/config.gypi     node_debug_lib: false,
npm ERR! gyp sill build/config.gypi     node_enable_d8: false,
npm ERR! gyp sill build/config.gypi     node_install_npm: true,
npm ERR! gyp sill build/config.gypi     node_library_files: [
npm ERR! gyp sill build/config.gypi       'lib/assert.js',
npm ERR! gyp sill build/config.gypi       'lib/async_hooks.js',
npm ERR! gyp sill build/config.gypi       'lib/buffer.js',
npm ERR! gyp sill build/config.gypi       'lib/child_process.js',
npm ERR! gyp sill build/config.gypi       'lib/cluster.js',
npm ERR! gyp sill build/config.gypi       'lib/console.js',
npm ERR! gyp sill build/config.gypi       'lib/constants.js',
npm ERR! gyp sill build/config.gypi       'lib/crypto.js',
npm ERR! gyp sill build/config.gypi       'lib/dgram.js',
npm ERR! gyp sill build/config.gypi       'lib/diagnostics_channel.js',
npm ERR! gyp sill build/config.gypi       'lib/dns.js',
npm ERR! gyp sill build/config.gypi       'lib/domain.js',
npm ERR! gyp sill build/config.gypi       'lib/events.js',
npm ERR! gyp sill build/config.gypi       'lib/fs.js',
npm ERR! gyp sill build/config.gypi       'lib/http.js',
npm ERR! gyp sill build/config.gypi       'lib/http2.js',
npm ERR! gyp sill build/config.gypi       'lib/https.js',
npm ERR! gyp sill build/config.gypi       'lib/inspector.js',
npm ERR! gyp sill build/config.gypi       'lib/module.js',
npm ERR! gyp sill build/config.gypi       'lib/net.js',
npm ERR! gyp sill build/config.gypi       'lib/os.js',
npm ERR! gyp sill build/config.gypi       'lib/path.js',
npm ERR! gyp sill build/config.gypi       'lib/perf_hooks.js',
npm ERR! gyp sill build/config.gypi       'lib/process.js',
npm ERR! gyp sill build/config.gypi       'lib/punycode.js',
npm ERR! gyp sill build/config.gypi       'lib/querystring.js',
npm ERR! gyp sill build/config.gypi       'lib/readline.js',
npm ERR! gyp sill build/config.gypi       'lib/repl.js',
npm ERR! gyp sill build/config.gypi       'lib/stream.js',
npm ERR! gyp sill build/config.gypi       'lib/string_decoder.js',
npm ERR! gyp sill build/config.gypi       'lib/sys.js',
npm ERR! gyp sill build/config.gypi       'lib/timers.js',
npm ERR! gyp sill build/config.gypi       'lib/tls.js',
npm ERR! gyp sill build/config.gypi       'lib/trace_events.js',
npm ERR! gyp sill build/config.gypi       'lib/tty.js',
npm ERR! gyp sill build/config.gypi       'lib/url.js',
npm ERR! gyp sill build/config.gypi       'lib/util.js',
npm ERR! gyp sill build/config.gypi       'lib/v8.js',
npm ERR! gyp sill build/config.gypi       'lib/vm.js',
npm ERR! gyp sill build/config.gypi       'lib/wasi.js',
npm ERR! gyp sill build/config.gypi       'lib/worker_threads.js',
npm ERR! gyp sill build/config.gypi       'lib/zlib.js',
npm ERR! gyp sill build/config.gypi       'lib/_http_agent.js',
npm ERR! gyp sill build/config.gypi       'lib/_http_client.js',
npm ERR! gyp sill build/config.gypi       'lib/_http_common.js',
npm ERR! gyp sill build/config.gypi       'lib/_http_incoming.js',
npm ERR! gyp sill build/config.gypi       'lib/_http_outgoing.js',
npm ERR! gyp sill build/config.gypi       'lib/_http_server.js',
npm ERR! gyp sill build/config.gypi       'lib/_stream_duplex.js',
npm ERR! gyp sill build/config.gypi       'lib/_stream_passthrough.js',
npm ERR! gyp sill build/config.gypi       'lib/_stream_readable.js',
npm ERR! gyp sill build/config.gypi       'lib/_stream_transform.js',
npm ERR! gyp sill build/config.gypi       'lib/_stream_wrap.js',
npm ERR! gyp sill build/config.gypi       'lib/_stream_writable.js',
npm ERR! gyp sill build/config.gypi       'lib/_tls_common.js',
npm ERR! gyp sill build/config.gypi       'lib/_tls_wrap.js',
npm ERR! gyp sill build/config.gypi       'lib/assert/strict.js',
npm ERR! gyp sill build/config.gypi       'lib/dns/promises.js',
npm ERR! gyp sill build/config.gypi       'lib/fs/promises.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/abort_controller.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/assert.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/async_hooks.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/blob.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/blocklist.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/buffer.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/child_process.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/cli_table.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/constants.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/dgram.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/dtrace.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/encoding.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/errors.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/error_serdes.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/event_target.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/fixed_queue.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/freelist.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/freeze_intrinsics.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/heap_utils.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/histogram.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/http.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/idna.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/inspector_async_hook.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/js_stream_socket.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/linkedlist.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/net.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/options.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/priority_queue.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/querystring.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/repl.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/socketaddress.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/socket_list.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/stream_base_commons.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/timers.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/trace_events_async_hooks.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/tty.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/url.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/util.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/v8_prof_polyfill.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/v8_prof_processor.js',
npm ERR! gyp sill build/config.gypi       'lib/internal/validators.js',
npm ERR! gyp sill build/config.gypi       ... 160 more items
npm ERR! gyp sill build/config.gypi     ],
npm ERR! gyp sill build/config.gypi     node_module_version: 93,
npm ERR! gyp sill build/config.gypi     node_no_browser_globals: false,
npm ERR! gyp sill build/config.gypi     node_prefix: '/usr/local',
npm ERR! gyp sill build/config.gypi     node_release_urlbase: 'https://nodejs.org/download/release/',
npm ERR! gyp sill build/config.gypi     node_shared: false,
npm ERR! gyp sill build/config.gypi     node_shared_brotli: false,
npm ERR! gyp sill build/config.gypi     node_shared_cares: false,
npm ERR! gyp sill build/config.gypi     node_shared_http_parser: false,
npm ERR! gyp sill build/config.gypi     node_shared_libuv: false,
npm ERR! gyp sill build/config.gypi     node_shared_nghttp2: false,
npm ERR! gyp sill build/config.gypi     node_shared_nghttp3: false,
npm ERR! gyp sill build/config.gypi     node_shared_ngtcp2: false,
npm ERR! gyp sill build/config.gypi     node_shared_openssl: false,
npm ERR! gyp sill build/config.gypi     node_shared_zlib: false,
npm ERR! gyp sill build/config.gypi     node_tag: '',
npm ERR! gyp sill build/config.gypi     node_target_type: 'executable',
npm ERR! gyp sill build/config.gypi     node_use_bundled_v8: true,
npm ERR! gyp sill build/config.gypi     node_use_dtrace: false,
npm ERR! gyp sill build/config.gypi     node_use_etw: true,
npm ERR! gyp sill build/config.gypi     node_use_node_code_cache: true,
npm ERR! gyp sill build/config.gypi     node_use_node_snapshot: true,
npm ERR! gyp sill build/config.gypi     node_use_openssl: true,
npm ERR! gyp sill build/config.gypi     node_use_v8_platform: true,
npm ERR! gyp sill build/config.gypi     node_with_ltcg: true,
npm ERR! gyp sill build/config.gypi     node_without_node_options: false,
npm ERR! gyp sill build/config.gypi     openssl_fips: '',
npm ERR! gyp sill build/config.gypi     openssl_is_fips: false,
npm ERR! gyp sill build/config.gypi     openssl_quic: true,
npm ERR! gyp sill build/config.gypi     ossfuzz: false,
npm ERR! gyp sill build/config.gypi     shlib_suffix: 'so.93',
npm ERR! gyp sill build/config.gypi     target_arch: 'x64',
npm ERR! gyp sill build/config.gypi     v8_enable_31bit_smis_on_64bit_arch: 0,
npm ERR! gyp sill build/config.gypi     v8_enable_gdbjit: 0,
npm ERR! gyp sill build/config.gypi     v8_enable_i18n_support: 1,
npm ERR! gyp sill build/config.gypi     v8_enable_inspector: 1,
npm ERR! gyp sill build/config.gypi     v8_enable_lite_mode: 0,
npm ERR! gyp sill build/config.gypi     v8_enable_object_print: 1,
npm ERR! gyp sill build/config.gypi     v8_enable_pointer_compression: 0,
npm ERR! gyp sill build/config.gypi     v8_enable_webassembly: 1,
npm ERR! gyp sill build/config.gypi     v8_no_strict_aliasing: 1,
npm ERR! gyp sill build/config.gypi     v8_optimized_debug: 1,
npm ERR! gyp sill build/config.gypi     v8_promise_internal_field_count: 1,
npm ERR! gyp sill build/config.gypi     v8_random_seed: 0,
npm ERR! gyp sill build/config.gypi     v8_trace_maps: 0,
npm ERR! gyp sill build/config.gypi     v8_use_siphash: 1,
npm ERR! gyp sill build/config.gypi     want_separate_host_toolset: 0,
npm ERR! gyp sill build/config.gypi     nodedir: 'C:\\Users\\Liu.D.H\\AppData\\Local\\node-gyp\\Cache\\16.13.0',
npm ERR! gyp sill build/config.gypi     standalone_static_library: 1,
npm ERR! gyp sill build/config.gypi     msbuild_path: 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\Current\\Bin\\MSBuild.exe',
npm ERR! gyp sill build/config.gypi     access: 'public',
npm ERR! gyp sill build/config.gypi     cache: 'C:\\Users\\Liu.D.H\\AppData\\Local\\npm-cache',
npm ERR! gyp sill build/config.gypi     chromedriver_cdnurl: 'https://npm.taobao.org/mirrors/chromedriver',
npm ERR! gyp sill build/config.gypi     couchbase_binary_host_mirror: 'https://npm.taobao.org/mirrors/couchbase/v{version}',
npm ERR! gyp sill build/config.gypi     debug_binary_host_mirror: 'https://npm.taobao.org/mirrors/node-inspector',
npm ERR! gyp sill build/config.gypi     disturl: 'https://npm.taobao.org/dist',
npm ERR! gyp sill build/config.gypi     electron_mirror: 'https://cdn.npm.taobao.org/dist/electron/',
npm ERR! gyp sill build/config.gypi     flow_bin_binary_host_mirror: 'https://npm.taobao.org/mirrors/flow/v',
npm ERR! gyp sill build/config.gypi     fse_binary_host_mirror: 'https://npm.taobao.org/mirrors/fsevents',
npm ERR! gyp sill build/config.gypi     fuse_bindings_binary_host_mirror: 'https://npm.taobao.org/mirrors/fuse-bindings/v{version}',
npm ERR! gyp sill build/config.gypi     git4win_mirror: 'https://npm.taobao.org/mirrors/git-for-windows',
npm ERR! gyp sill build/config.gypi     global: 'true',
npm ERR! gyp sill build/config.gypi     globalconfig: 'C:\\Users\\Liu.D.H\\AppData\\Roaming\\npm\\etc\\npmrc',
npm ERR! gyp sill build/config.gypi     global_prefix: 'C:\\Users\\Liu.D.H\\AppData\\Roaming\\npm',
npm ERR! gyp sill build/config.gypi     gl_binary_host_mirror: 'https://npm.taobao.org/mirrors/gl/v{version}',
npm ERR! gyp sill build/config.gypi     grpc_node_binary_host_mirror: 'https://npm.taobao.org/mirrors',
npm ERR! gyp sill build/config.gypi     hackrf_binary_host_mirror: 'https://npm.taobao.org/mirrors/hackrf/v{version}',
npm ERR! gyp sill build/config.gypi     init_module: 'C:\\Users\\Liu.D.H\\.npm-init.js',
npm ERR! gyp sill build/config.gypi     leveldown_binary_host_mirror: 'https://npm.taobao.org/mirrors/leveldown/v{version}',
npm ERR! gyp sill build/config.gypi     leveldown_hyper_binary_host_mirror: 'https://npm.taobao.org/mirrors/leveldown-hyper/v{version}',
npm ERR! gyp sill build/config.gypi     local_prefix: 'null',
npm ERR! gyp sill build/config.gypi     metrics_registry: 'https://registry.npmjs.org/',
npm ERR! gyp sill build/config.gypi     mknod_binary_host_mirror: 'https://npm.taobao.org/mirrors/mknod/v{version}',
npm ERR! gyp sill build/config.gypi     nodegit_binary_host_mirror: 'https://npm.taobao.org/mirrors/nodegit/v{version}/',
npm ERR! gyp sill build/config.gypi     node_gyp: 'C:\\Users\\Liu.D.H\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js',
npm ERR! gyp sill build/config.gypi     node_sqlite3_binary_host_mirror: 'https://npm.taobao.org/mirrors',
npm ERR! gyp sill build/config.gypi     node_tk5_binary_host_mirror: 'https://npm.taobao.org/mirrors/node-tk5/v{version}',
npm ERR! gyp sill build/config.gypi     no_optional: 'true',
npm ERR! gyp sill build/config.gypi     operadriver_cdnurl: 'https://npm.taobao.org/mirrors/operadriver',
npm ERR! gyp sill build/config.gypi     phantomjs_cdnurl: 'https://npm.taobao.org/mirrors/phantomjs',
npm ERR! gyp sill build/config.gypi     prefix: 'C:\\Users\\Liu.D.H\\AppData\\Roaming\\npm',
npm ERR! gyp sill build/config.gypi     profiler_binary_host_mirror: 'https://npm.taobao.org/mirrors/node-inspector/',
npm ERR! gyp sill build/config.gypi     puppeteer_download_host: 'https://npm.taobao.org/mirrors',
npm ERR! gyp sill build/config.gypi     python_mirror: 'https://npm.taobao.org/mirrors/python',
npm ERR! gyp sill build/config.gypi     rabin_binary_host_mirror: 'https://npm.taobao.org/mirrors/rabin/v{version}',
npm ERR! gyp sill build/config.gypi     sass_binary_site: 'https://npm.taobao.org/mirrors/node-sass',
npm ERR! gyp sill build/config.gypi     sodium_prebuilt_binary_host_mirror: 'https://npm.taobao.org/mirrors/sodium-prebuilt/v{version}',
npm ERR! gyp sill build/config.gypi     sqlite3_binary_site: 'https://npm.taobao.org/mirrors/sqlite3',
npm ERR! gyp sill build/config.gypi     strict_ssl: '',
npm ERR! gyp sill build/config.gypi     userconfig: 'C:\\Users\\Liu.D.H\\.npmrc',
npm ERR! gyp sill build/config.gypi     user_agent: 'npm/8.1.3 node/v16.13.0 win32 x64 workspaces/false',
npm ERR! gyp sill build/config.gypi     utf_8_validate_binary_host_mirror: 'https://npm.taobao.org/mirrors/utf-8-validate/v{version}',
npm ERR! gyp sill build/config.gypi     utp_native_binary_host_mirror: 'https://npm.taobao.org/mirrors/utp-native/v{version}',
npm ERR! gyp sill build/config.gypi     zmq_prebuilt_binary_host_mirror: 'https://npm.taobao.org/mirrors/zmq-prebuilt/v{version}'
npm ERR! gyp sill build/config.gypi   }
npm ERR! gyp sill build/config.gypi }
npm ERR! gyp verb build/config.gypi writing out config file: C:\Users\Liu.D.H\AppData\Roaming\npm\node_modules\jp-babel\node_modules\zeromq\build\config.gypi
npm ERR! gyp verb config.gypi checking for gypi file: C:\Users\Liu.D.H\AppData\Roaming\npm\node_modules\jp-babel\node_modules\zeromq\config.gypi
npm ERR! gyp verb common.gypi checking for gypi file: C:\Users\Liu.D.H\AppData\Roaming\npm\node_modules\jp-babel\node_modules\zeromq\common.gypi
npm ERR! gyp verb gyp gyp format was not specified; forcing "msvs"
npm ERR! gyp info spawn C:\Users\Liu.D.H\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   'C:\\Users\\Liu.D.H\\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\\Liu.D.H\\AppData\\Roaming\\npm\\node_modules\\jp-babel\\node_modules\\zeromq\\build\\config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   'C:\\Users\\Liu.D.H\\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\\Liu.D.H\\AppData\\Local\\node-gyp\\Cache\\16.13.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\\Liu.D.H\\AppData\\Local\\node-gyp\\Cache\\16.13.0',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\Liu.D.H\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\Liu.D.H\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\16.13.0\\\\<(target_arch)\\\\node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\Liu.D.H\\AppData\\Roaming\\npm\\node_modules\\jp-babel\\node_modules\\zeromq',
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\\Liu.D.H\\AppData\\Roaming\\npm\\node_modules\\jp-babel\\node_modules\\zeromq\\build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp verb command build []
npm ERR! gyp verb build type Release
npm ERR! gyp verb architecture x64
npm ERR! gyp verb node dev dir C:\Users\Liu.D.H\AppData\Local\node-gyp\Cache\16.13.0
npm ERR! gyp verb found first Solution file build/binding.sln
npm ERR! gyp verb using MSBuild: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe
npm ERR! gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\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   '/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\2019\Community\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
npm ERR! gyp ERR! stack     at ChildProcess.onExit (C:\Users\Liu.D.H\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Windows_NT 10.0.22000
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Liu.D.H\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd C:\Users\Liu.D.H\AppData\Roaming\npm\node_modules\jp-babel\node_modules\zeromq
npm ERR! gyp ERR! node -v v16.13.0
npm ERR! gyp ERR! node-gyp -v v8.3.0
npm ERR! gyp ERR! not ok
npm ERR! npm verb cli [
npm ERR! npm verb cli   'C:\\Program Files\\nodejs\\node.exe',
npm ERR! npm verb cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
npm ERR! npm verb cli   'prefix',
npm ERR! npm verb cli   '-g'
npm ERR! npm verb cli ]
npm ERR! npm info using [email protected]
npm ERR! npm info using [email protected]
npm ERR! npm timing npm:load:whichnode Completed in 0ms
npm ERR! npm timing config:load:defaults Completed in 2ms
npm ERR! npm timing config:load:file:C:\Users\Liu.D.H\AppData\Roaming\nvm\v16.13.0\node_modules\npm\npmrc Completed in 2ms
npm ERR! npm timing config:load:builtin Completed in 2ms
npm ERR! npm timing config:load:cli Completed in 3ms
npm ERR! npm timing config:load:env Completed in 2ms
npm ERR! npm timing config:load:file:C:\Users\Liu.D.H\AppData\Roaming\npm\node_modules\jp-babel\node_modules\zeromq\.npmrc Completed in 0ms
npm ERR! npm timing config:load:project Completed in 2ms
npm ERR! npm timing config:load:file:C:\Users\Liu.D.H\.npmrc Completed in 3ms
npm ERR! npm timing config:load:user Completed in 3ms
npm ERR! npm timing config:load:file:C:\Users\Liu.D.H\AppData\Roaming\npm\etc\npmrc Completed in 0ms
npm ERR! npm timing config:load:global Completed in 0ms
npm ERR! npm timing config:load:validate Completed in 2ms
npm ERR! npm timing config:load:credentials Completed in 1ms
npm ERR! npm timing config:load:setEnvs Completed in 1ms
npm ERR! npm timing config:load Completed in 18ms
npm ERR! npm timing npm:load:configload Completed in 19ms
npm ERR! npm timing npm:load:setTitle Completed in 0ms
npm ERR! npm timing npm:load:setupLog Completed in 1ms
npm ERR! npm timing config:load:flatten Completed in 4ms
npm ERR! npm timing npm:load:cleanupLog Completed in 2ms
npm ERR! npm timing npm:load:configScope Completed in 0ms
npm ERR! npm timing npm:load:projectScope Completed in 1ms
npm ERR! npm timing npm:load Completed in 30ms
npm ERR! npm timing command:prefix Completed in 1ms
npm ERR! npm verb exit 0
npm ERR! npm timing npm Completed in 302ms
npm ERR! npm info ok
npm ERR! npm verb cli [
npm ERR! npm verb cli   'C:\\Program Files\\nodejs\\node.exe',
npm ERR! npm verb cli   'C:\\Users\\Liu.D.H\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
npm ERR! npm verb cli   'run',
npm ERR! npm verb cli   'build:libzmq'
npm ERR! npm verb cli ]
npm ERR! npm info using [email protected]
npm ERR! npm info using [email protected]
npm ERR! npm timing npm:load:whichnode Completed in 1ms
npm ERR! npm timing config:load:defaults Completed in 3ms
npm ERR! npm timing config:load:file:C:\Users\Liu.D.H\AppData\Roaming\npm\node_modules\npm\npmrc Completed in 1ms
npm ERR! npm timing config:load:builtin Completed in 1ms
npm ERR! npm timing config:load:cli Completed in 2ms
npm ERR! npm timing config:load:env Completed in 3ms
npm ERR! npm timing config:load:project Completed in 0ms
npm ERR! npm timing config:load:file:C:\Users\Liu.D.H\.npmrc Completed in 3ms
npm ERR! npm timing config:load:user Completed in 3ms
npm ERR! npm timing config:load:file:C:\Users\Liu.D.H\AppData\Roaming\npm\etc\npmrc Completed in 1ms
npm ERR! npm timing config:load:global Completed in 1ms
npm ERR! npm timing config:load:validate Completed in 4ms
npm ERR! npm timing config:load:credentials Completed in 1ms
npm ERR! npm timing config:load:setEnvs Completed in 2ms
npm ERR! npm timing config:load Completed in 20ms
npm ERR! npm timing npm:load:configload Completed in 20ms
npm ERR! npm timing npm:load:setTitle Completed in 0ms
npm ERR! npm timing npm:load:setupLog Completed in 1ms
npm ERR! npm timing config:load:flatten Completed in 3ms
npm ERR! npm timing npm:load:cleanupLog Completed in 4ms
npm ERR! npm timing npm:load:configScope Completed in 0ms
npm ERR! npm timing npm:load:projectScope Completed in 1ms
npm ERR! npm timing npm:load Completed in 36ms
npm ERR! npm timing command:run Completed in 6ms
npm ERR! npm verb stack Error: ENOENT: no such file or directory, open 'C:\Users\Liu.D.H\AppData\Roaming\npm\node_modules\jp-babel\node_modules\zeromq\null\package.json'
npm ERR! npm verb cwd C:\Users\Liu.D.H\AppData\Roaming\npm\node_modules\jp-babel\node_modules\zeromq
npm ERR! npm verb Windows_NT 10.0.22000
npm ERR! npm verb argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Liu.D.H\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "build:libzmq"
npm ERR! npm verb node v16.13.0
npm ERR! npm verb npm  v8.1.3
npm ERR! npm ERR! code ENOENT
npm ERR! npm ERR! syscall open
npm ERR! npm ERR! path null/package.json
npm ERR! npm ERR! errno -4058
npm ERR! npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\Liu.D.H\AppData\Roaming\npm\node_modules\jp-babel\node_modules\zeromq\null\package.json'
npm ERR! npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! npm ERR! enoent
npm ERR! npm verb exit -4058
npm ERR! npm timing npm Completed in 547ms
npm ERR! npm verb code -4058
npm ERR!
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR!     C:\Users\Liu.D.H\AppData\Local\npm-cache\_logs\2021-11-11T02_49_51_940Z-debug.log
npm verb exit 4294963238
npm timing npm Completed in 51044ms
npm verb unfinished npm timer reify 1636598942043
npm verb unfinished npm timer reify:build 1636598946812
npm verb unfinished npm timer build 1636598946813
npm verb unfinished npm timer build:deps 1636598946813
npm verb unfinished npm timer build:run:install 1636598946963
npm verb unfinished npm timer build:run:install:node_modules/ijavascript/node_modules/zeromq 1636598946964
npm verb unfinished npm timer build:run:install:node_modules/jp-babel/node_modules/zeromq 1636598946975
npm verb code 4294963238

Reproducing
Execute npm i -g ijavascript jp-babel --loglevel silly.

Expected behavior
work as expected.

Tested on

  • OS: Microsoft Windows [Version 10.0.22000.318]
  • ZeroMQ.js version: 5
@n-riesco
Copy link
Contributor

n-riesco commented Nov 11, 2021

@aminya This may help: n-riesco/ijavascript#253 (comment)

@liudonghua123
Copy link
Author

liudonghua123 commented Nov 12, 2021

I tried to set node_gyp config, but it did not work either.
see n-riesco/ijavascript#253 (comment).

@n-riesco
Copy link
Contributor

@aminya : @liudonghua123 also tried to update the internal node-gyp, and this didn't work either.

See n-riesco/ijavascript#253 (comment) . When @liudonghua123 used node-gyp~8.4.0, it failed with the following error:

npm ERR! C:\Users\Liu.D.H\AppData\Roaming\npm\node_modules\ijavascript\node_modules\zeromq\binding.cc(24,10): fatal error C1083: Cannot open include file: 'v8.h': No such file or directory [C:\Users\Liu.D.H\AppData\Roaming\npm\node_modules\ijavascript\node_modules\zeromq\build\zmq.vcxproj]

@n-riesco
Copy link
Contributor

@liudonghua123 I can't edit the title of this issue. I'd change it to something more descriptive, e.g. "Failure to build zeromq using Visual Studio 2022".

@liudonghua123 liudonghua123 changed the title ENOENT: no such file or directory, open zeromq\null\package.json Failure to build zeromq using Visual Studio 2022 Nov 13, 2021
@liudonghua123
Copy link
Author

@n-riesco Thanks, now I have fixed the problem. see n-riesco/ijavascript#253 (comment).

I also have a question, https://github.com/nteract/libzmq-win is archived and deprecated, why not use https://github.com/zeromq/libzmq on windows. The latter also have window binary like https://github.com/zeromq/libzmq/releases/download/v4.3.4/libzmq-v142-x64-4_3_4.zip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants