Skip to content

OS X EI Capitan solves "Cannot find module './build/Debug/nodegit'" #753

Closed

Description

@mlhch

Hi everyone,

I'd like show my case here for others reference:

Long long ago I use nodegit v0.1.4 to create a personal project and it worked well. Later node/npm/OSX had been upgraded greatly. Yesterday I accidentally removed all project node_modules and try npm install to rebuild, then the issue appears as title says. I use "n" and tried node versions v0.10.32/v0.10.40/v0.12.7/v4.2, but all unlucky.

Now I just upgrade to OS X El Capitan, the bug disappears for node v0.10.32. Maybe other node versions work too, I'll try soon.

I remember that previously the ./build/Release/nodegit will throw error saying can not load module etc, but now no error thrown and it works well.

Anybody can tell what's wrong and is there a better solution for Yosemite?

Thanks

Activity

  1. saper commented on Oct 16, 2015

    @saper
    Collaborator

    Can you check your node on Yosemite and show me what is says when you enter:

    node -p process.config

  2. Turbo87 commented on Dec 9, 2015

    @Turbo87
    Contributor

    I got a similar issue. This is my node -p process.config output:

    { target_defaults:
       { cflags: [],
         default_configuration: 'Release',
         defines: [],
         include_dirs: [],
         libraries: [] },
      variables:
       { asan: 0,
         host_arch: 'x64',
         icu_data_file: 'icudt56l.dat',
         icu_data_in: '../../deps/icu/source/data/in/icudt56l.dat',
         icu_endianness: 'l',
         icu_gyp_path: 'tools/icu/icu-generic.gyp',
         icu_locales: 'en,root',
         icu_path: './deps/icu',
         icu_small: true,
         icu_ver_major: '56',
         llvm_version: 0,
         node_byteorder: 'little',
         node_install_npm: false,
         node_prefix: '/usr/local/Cellar/node/5.1.1',
         node_release_urlbase: '',
         node_shared_http_parser: false,
         node_shared_libuv: false,
         node_shared_openssl: false,
         node_shared_zlib: false,
         node_tag: '',
         node_use_dtrace: true,
         node_use_etw: false,
         node_use_lttng: false,
         node_use_openssl: true,
         node_use_perfctr: false,
         openssl_fips: '',
         openssl_no_asm: 0,
         python: '/usr/bin/python',
         target_arch: 'x64',
         uv_parent_path: '/deps/uv/',
         uv_use_dtrace: true,
         v8_enable_gdbjit: 0,
         v8_enable_i18n_support: 1,
         v8_no_strict_aliasing: 1,
         v8_optimized_debug: 0,
         v8_random_seed: 0,
         v8_use_snapshot: 1,
         want_separate_host_toolset: 0 } }
  3. Turbo87 commented on Dec 9, 2015

    @Turbo87
    Contributor

    Note that it doesn't work with nvm use 5 either, but nvm use 4 works.

  4. johnhaley81 commented on Dec 9, 2015

    @johnhaley81
    Collaborator

    @Turbo87 could you try again please? Binaries are published now and this should work.

  5. bric3 commented on Dec 10, 2015

    @bric3

    @johnhaley81 Actually I have a similar issue, but that's even worse since nodegit won't compile due to lissh2.

    I've added log files in a gist

    Here's brief version

    npm ERR! Darwin 15.2.0
    npm ERR! argv "/usr/local/Cellar/node/5.2.0/bin/node" "/usr/local/bin/npm" "run" "install-deps"
    npm ERR! node v5.2.0
    npm ERR! npm  v3.3.12
    npm ERR! code ELIFECYCLE
    npm ERR! project@11.0.0 install-deps: `npm-cache install`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the project@11.0.0 install-deps script 'npm-cache install'.
    npm ERR! Make sure you have the latest version of node.js and npm installed.
    npm ERR! If you do, this is most likely a problem with the project package,
    npm ERR! not with npm itself.
    npm ERR! Tell the author that this fails on your system:
    npm ERR!     npm-cache install
    npm ERR! You can get their info via:
    npm ERR!     npm owner ls project
    npm ERR! There is likely additional logging output above.
    
    npm ERR! Please include the following file with any support request:
    npm ERR!     /Users/brice/work/the/project/npm-debug.log
    
    { target_defaults:
       { cflags: [],
         default_configuration: 'Release',
         defines: [],
         include_dirs: [],
         libraries: [] },
      variables:
       { asan: 0,
         host_arch: 'x64',
         icu_data_file: 'icudt56l.dat',
         icu_data_in: '../../deps/icu/source/data/in/icudt56l.dat',
         icu_endianness: 'l',
         icu_gyp_path: 'tools/icu/icu-generic.gyp',
         icu_locales: 'en,root',
         icu_path: './deps/icu',
         icu_small: true,
         icu_ver_major: '56',
         llvm_version: 0,
         node_byteorder: 'little',
         node_enable_v8_vtunejit: false,
         node_install_npm: false,
         node_prefix: '/usr/local/Cellar/node/5.2.0',
         node_release_urlbase: '',
         node_shared_http_parser: false,
         node_shared_libuv: false,
         node_shared_openssl: false,
         node_shared_zlib: false,
         node_tag: '',
         node_use_dtrace: true,
         node_use_etw: false,
         node_use_lttng: false,
         node_use_openssl: true,
         node_use_perfctr: false,
         openssl_fips: '',
         openssl_no_asm: 0,
         python: '/usr/bin/python',
         target_arch: 'x64',
         uv_parent_path: '/deps/uv/',
         uv_use_dtrace: true,
         v8_enable_gdbjit: 0,
         v8_enable_i18n_support: 1,
         v8_no_strict_aliasing: 1,
         v8_optimized_debug: 0,
         v8_random_seed: 0,
         v8_use_snapshot: true,
         want_separate_host_toolset: 0 } }
    
  6. johnhaley81 commented on Dec 10, 2015

    @johnhaley81
    Collaborator

    @bric3 can you update to NodeGit 0.6.0 and try it again?

  7. maxkorp commented on Dec 11, 2015

    @maxkorp
    Collaborator

    Also, if you need to actually build

    brew install openssl
    brew link openssl --force
    

    That's new as of el capitan. Thanks Apple!

    Gotta add that to the readme...

  8. bric3 commented on Dec 12, 2015

    @bric3

    @johnhaley81 Thanks that worked, without having to resort to force linking openssl
    @maxkorp I'm a bit wary to force linking openssl, brew guys had a good reason to make this formula keg only, as it may break other things for osx / xcode.

  9. bric3 commented on Dec 12, 2015

    @bric3

    For reference here's the successful install log : https://gist.github.com/bric3/6a6ad2d598a7b19d9fb2

    Cheers guys :)

  10. maxkorp commented on Dec 14, 2015

    @maxkorp
    Collaborator

    @bric3 yeah, thats specifically for compiling nodegit. with 0.6.0, we have published binaries out so you don't generally need to compile it.

  11. bric3 commented on Dec 16, 2015

    @bric3

    That's good :)
    Thanks again

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions