Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

../node_modules/nan/nan.h:53:10: fatal error: 'uv.h' file not found #2775

Open
@saper

Description

When building node-sass (v4.13.0) with the node engine that does not bundle uv we may get
a problem with not finding <uv.h> in the right place.

> node -p process.config.variables.node_shared_libuv
true

> node -p process.versions
{
  node: '13.0.0',
  v8: '7.8.279.17-node.14',
  uv: '1.33.0',
  zlib: '1.2.11',
  brotli: '1.0.7',
  ares: '1.15.0',
  modules: '79',
  nghttp2: '1.39.2',
  napi: '5',
  llhttp: '1.1.4',
  openssl: '1.1.1a-freebsd',
  cldr: '36.0',
  icu: '65.1',
  tz: '2019c',
  unicode: '12.1'
}
> node -p process.config  
{
  target_defaults: {
    cflags: [],
    default_configuration: 'Release',
    defines: [ 'NODE_OPENSSL_CERT_STORE' ],
    include_dirs: [
      '/usr/local/include',
      '/usr/local/include',
      '/usr/local/include'
    ],
    libraries: [
      '-lz',
      '-L/usr/local/lib',
      '-luv',
      '-L/usr/local/lib',
      '-lcares',
      '-lnghttp2',
      '-lcrypto',
      '-lssl',
      '-L/usr/local/lib',
      '-licui18n',
      '-licuuc',
      '-licudata'
    ]
  },
  variables: {
    asan: 0,
    build_v8_with_gn: false,
    coverage: false,
    debug_nghttp2: false,
    enable_lto: false,
    enable_pgo_generate: false,
    enable_pgo_use: false,
    force_dynamic_crt: 0,
    host_arch: 'x64',
    icu_gyp_path: 'tools/icu/icu-system.gyp',
    icu_small: false,
    icu_ver_major: '65',
    is_debug: 0,
    llvm_version: '6.0',
    napi_build_version: '5',
    node_byteorder: 'little',
    node_code_cache: 'yes',
    node_debug_lib: false,
    node_enable_d8: false,
    node_install_npm: false,
    node_module_version: 79,
    node_no_browser_globals: false,
    node_prefix: '/usr/local',
    node_release_urlbase: '',
    node_report: true,
    node_shared: false,
    node_shared_cares: true,
    node_shared_http_parser: false,
    node_shared_libuv: true,
    node_shared_nghttp2: true,
    node_shared_openssl: true,
    node_shared_zlib: true,
    node_tag: '',
    node_target_type: 'executable',
    node_use_bundled_v8: true,
    node_use_dtrace: true,
    node_use_etw: false,
    node_use_large_pages: false,
    node_use_large_pages_script_lld: false,
    node_use_node_snapshot: true,
    node_use_openssl: true,
    node_use_v8_platform: true,
    node_with_ltcg: false,
    node_without_node_options: false,
    openssl_fips: '',
    openssl_is_fips: false,
    shlib_suffix: 'so.79',
    target_arch: 'x64',
    v8_enable_gdbjit: 0,
    v8_enable_i18n_support: 1,
    v8_enable_inspector: 1,
    v8_no_strict_aliasing: 1,
    v8_optimized_debug: 1,
    v8_promise_internal_field_count: 1,
    v8_random_seed: 0,
    v8_trace_maps: 0,
    v8_use_siphash: 1,
    v8_use_snapshot: 1,
    want_separate_host_toolset: 0
  }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions