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

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

Open
saper opened this issue Oct 29, 2019 · 2 comments
Open

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

saper opened this issue Oct 29, 2019 · 2 comments

Comments

@saper
Copy link
Member

saper commented Oct 29, 2019

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
  }
}
@nschonni
Copy link
Contributor

@saper is this specific to our setup or something general with Node 13? I know FreeBSD was dropped from the support tiers by the Node Build WG, so they may not have tested at all there

@saper
Copy link
Member Author

saper commented Oct 29, 2019

This is a general problem, not specific to node 13.

I logged this here for now, but I suspect it is something that should be fixed in node-gyp. Interestingly, node says that /usr/local/include should be added to include_dirs.

Might be related to nodejs/node-gyp#1264

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

No branches or pull requests

2 participants