Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Error: Cannot find module '../build/Debug/nodegit.node' #10819

Closed

Description

@mssever

When launching Atom, I get nothing but what appears to be a Chrome JavaScript error page.
atom_057
The error in question is:Cannot find module '../build/Debug/nodegit.node'.

I'm unfamiliar with NodeJS, but it appears to me that perhaps there may be an omission in the build instructions. It looks like I'm missing something that I need, but what is it?

v.1.6.0beta3 built from source on Ubuntu 14.04 32-bit and installed from a self-built .deb, all done according to the instructions.

Activity

  1. Arakaki commented on Feb 18, 2016

    @Arakaki

    I got same error.

    • OS: Ubuntu 14.04 32-bit
    • Atom version: v.1.6.0beta3
  2. winstliu commented on Feb 18, 2016

    @winstliu
    Contributor
  3. added
    linux
    on Feb 18, 2016
  4. Arakaki commented on Feb 18, 2016

    @Arakaki

    This is the error detail.

    Error: Cannot find module '../build/Debug/nodegit.node'
        at Module._resolveFilename (module.js:336:15)
        at Function.Module._resolveFilename (/usr/local/share/atom/resources/app.asar/src/module-cache.js:383:52)
        at Function.Module._load (module.js:286:25)
        at Module.require (module.js:365:17)
        at require (/usr/local/share/atom/resources/app.asar/src/native-compile-cache.js:50:27)
        at Object.<anonymous> (/usr/local/share/atom/resources/app.asar/node_modules/nodegit/lib/nodegit.js:15:12)
        at Module._compile (/usr/local/share/atom/resources/app.asar/src/native-compile-cache.js:103:30)
        at Object.defineProperty.value [as .js] (/usr/local/share/atom/resources/app.asar/src/compile-cache.js:208:21)
        at Module.load (module.js:355:32)
        at Function.Module._load (module.js:310:12)
        at Module.require (module.js:365:17)
        at require (/usr/local/share/atom/resources/app.asar/src/native-compile-cache.js:50:27)
        at Object.<anonymous> (/usr/local/share/atom/resources/app.asar/src/git-repository-async.js:25:16)
        at Module._compile (/usr/local/share/atom/resources/app.asar/src/native-compile-cache.js:103:30)
        at Object.defineProperty.value [as .js] (/usr/local/share/atom/resources/app.asar/src/compile-cache.js:208:21)
        at Module.load (module.js:355:32)
        at Function.Module._load (module.js:310:12)
        at Module.require (module.js:365:17)
        at require (/usr/local/share/atom/resources/app.asar/src/native-compile-cache.js:50:27)
        at Object.<anonymous> (/usr/local/share/atom/resources/app.asar/src/git-repository.js:12:24)
        at Object.<anonymous> (/usr/local/share/atom/resources/app.asar/src/git-repository.js:428:4)
        at Module._compile (/usr/local/share/atom/resources/app.asar/src/native-compile-cache.js:103:30)
        at Object.defineProperty.value [as .js] (/usr/local/share/atom/resources/app.asar/src/compile-cache.js:208:21)
        at Module.load (module.js:355:32)
        at Function.Module._load (module.js:310:12)
        at Module.require (module.js:365:17)
        at require (/usr/local/share/atom/resources/app.asar/src/native-compile-cache.js:50:27)
        at Object.<anonymous> (/usr/local/share/atom/resources/app.asar/src/git-repository-provider.js:8:19)
        at Object.<anonymous> (/usr/local/share/atom/resources/app.asar/src/git-repository-provider.js:83:4)
        at Module._compile (/usr/local/share/atom/resources/app.asar/src/native-compile-cache.js:103:30)
    
  5. joshaber commented on Feb 18, 2016

    @joshaber
    Contributor

    Hmm very odd! What happens if you try npm install nodegit?

  6. mssever commented on Feb 19, 2016

    @mssever
    Author

    Running npm install nodegit changes nothing. However, I haven't rebuilt Atom. I don't know if it's necessary to do so, but rebuilding on my machine will require about 2 hours, so I'm not anxious to do any unnecessary work. And anyway, since nodejs is Javascript, I'm assuming it's interpreted at runtime, anyway. (I may be showing my ignorance here.)

  7. mssever commented on Feb 19, 2016

    @mssever
    Author

    I rebuilt atom, but the issue persists.

  8. korova08 commented on Feb 26, 2016

    @korova08

    same problem with Debian testing (32 bits)

  9. mingjunyang commented on Mar 10, 2016

    @mingjunyang

    Atom : 1.7.0-dev-ac35fec
    Electron: 0.36.8
    Chrome : 47.0.2526.110
    Node : 5.1.1

    index.js:62 Error: Cannot find module '../build/Debug/nodegit.node'
        at Module._resolveFilename (module.js:338:15)
        at Function.Module._resolveFilename (/home/mingjunyang/bin/atom/Atom/resources/app.asar/src/module-cache.js:383:52)
        at Function.Module._load (module.js:289:25)
        at Module.require (module.js:366:17)
        at require (/home/mingjunyang/bin/atom/Atom/resources/app.asar/src/native-compile-cache.js:50:27)
        at Object.<anonymous> (/home/mingjunyang/bin/atom/Atom/resources/app.asar/node_modules/nodegit/lib/nodegit.js:17:12)
        at Module._compile (/home/mingjunyang/bin/atom/Atom/resources/app.asar/src/native-compile-cache.js:103:30)
        at Object.defineProperty.value [as .js] (/home/mingjunyang/bin/atom/Atom/resources/app.asar/src/compile-cache.js:208:21)
        at Module.load (module.js:356:32)
        at Function.Module._load (module.js:313:12)
        at Module.require (module.js:366:17)
        at require (/home/mingjunyang/bin/atom/Atom/resources/app.asar/src/native-compile-cache.js:50:27)
        at Object.<anonymous> (/home/mingjunyang/bin/atom/Atom/resources/app.asar/src/git-repository-async.js:25:16)
        at Module._compile (/home/mingjunyang/bin/atom/Atom/resources/app.asar/src/native-compile-cache.js:103:30)
        at Object.defineProperty.value [as .js] (/home/mingjunyang/bin/atom/Atom/resources/app.asar/src/compile-cache.js:208:21)
        at Module.load (module.js:356:32)
        at Function.Module._load (module.js:313:12)
        at Module.require (module.js:366:17)
        at require (/home/mingjunyang/bin/atom/Atom/resources/app.asar/src/native-compile-cache.js:50:27)
        at Object.<anonymous> (/home/mingjunyang/bin/atom/Atom/resources/app.asar/src/git-repository.js:12:24)
        at Object.<anonymous> (/home/mingjunyang/bin/atom/Atom/resources/app.asar/src/git-repository.js:428:4)
        at Module._compile (/home/mingjunyang/bin/atom/Atom/resources/app.asar/src/native-compile-cache.js:103:30)
        at Object.defineProperty.value [as .js] (/home/mingjunyang/bin/atom/Atom/resources/app.asar/src/compile-cache.js:208:21)
        at Module.load (module.js:356:32)
        at Function.Module._load (module.js:313:12)
        at Module.require (module.js:366:17)
        at require (/home/mingjunyang/bin/atom/Atom/resources/app.asar/src/native-compile-cache.js:50:27)
        at Object.<anonymous> (/home/mingjunyang/bin/atom/Atom/resources/app.asar/src/git-repository-provider.js:8:19)
        at Object.<anonymous> (/home/mingjunyang/bin/atom/Atom/resources/app.asar/src/git-repository-provider.js:83:4)
        at Module._compile (/home/mingjunyang/bin/atom/Atom/resources/app.asar/src/native-compile-cache.js:103:30)
    
  10. Arakaki commented on Mar 18, 2016

    @Arakaki

    v1.5.3 works well.
    But v1.6.0 and v1.7.0-beta0 still have the probrem. 😿

  11. roshimon commented on Mar 19, 2016

    @roshimon

    I have the same issue too. So what's the solution for this ?

  12. 52 remaining items

  13. artynet commented on Apr 8, 2016

    @artynet

    so i think it's just a matter of updating the nodegit version in the package.json file to 0.12.2

  14. rafaelsoaresbr commented on Apr 9, 2016

    @rafaelsoaresbr

    Yes @artynet
    Since nodegit/nodegit#980 has been merged.
    I've just opened a pull request to fix AUR package:
    sjug/atom-editor#5

  15. mahdavipanah commented on Apr 10, 2016

    @mahdavipanah

    I have the same issue with v1.6.1 and v1.6.2 but v1.6.0 works fine.
    My system: elementry OS Freya (Ubuntu 14.04) 64-bit

    Update: My problem solved by installing nodegit with npm: npm install nodegit

    P.S. I installed and updated atom from source code, so I'm not sure if the same problem exists within binary packages.

  16. rafaelsoaresbr commented on Apr 10, 2016

    @rafaelsoaresbr

    This problem is related to 32bits machines. There wasn't 32-bit prebuilt binaries of nodegit.
    If you have this problem on 64-bit machine, then something went wrong with you build. Or not, can someone confirm this? For me this problem doesn't happen on 64-bit Linux machine.

    Running:

    npm install nodegit
    

    Didn't solve this problem on 32bit machines (See #10819 (comment))

  17. joshaber commented on Apr 11, 2016

    @joshaber
    Contributor

    As of #11426 we should be able to nodegit's 32-bit binaries too.

  18. roshimon commented on Apr 16, 2016

    @roshimon

    Upgrading to atom 1.8.0-beta1 has fixed the issue for me. Working flawlessly now :)

  19. AnwarShah commented on Apr 17, 2016

    @AnwarShah

    I'm on Ubuntu trusty 32bit. I built version 1.7.1 today and same errors happen. I upgraded nodegit by npm install nodegit, but nothing changed!

  20. rafaelsoaresbr commented on Apr 17, 2016

    @rafaelsoaresbr

    @AnwarShah
    ask the package maintainer to apply a small patch like the one applied to the AUR package (for Arch Linux) or use v1.8beta instead.

  21. Sfinx commented on Apr 17, 2016

    @Sfinx

    v1.8.0beta (commit 9e39445....) still not working when building from source code at Slackware 32bit. The same error about nodegit

    UPD. Sorry, my fault - missed "atom-beta" ;)

  22. Sfinx commented on Apr 17, 2016

    @Sfinx

    Sorry, my fault - missed "atom-beta" binary name, 1.8.0beta works ! ;)

  23. gzaffin commented on Apr 28, 2016

    @gzaffin

    Sorry to clutter this thread.
    I managed to have atom working on Ubuntu 32-bit, but I think I didn't it the right way.
    After script/build of branch version atom-beta-1.8.0beta2, I git cloned nodegit, installed nodegit (here I think I missed something, I needed forcing 'sudo' all over the places in installing scripts in order to mantain writing rights on modules folder) and manually copied nodegid installation from my default installed modules folder into atom-beta-1.8.0beta2 modules sub-folder. In this way atom can start from out folder, but installed atom in /usr/local/bin shows once more
    Error: Cannot find module '../build/Debug/nodegit.node'
    etc. etc.

  24. nikolowry commented on May 24, 2016

    @nikolowry

    This is still a problem in master (1.90-dev). I had to cd into node_modules/ohnogit/node_modules/nodegit/ and run npm run install. I tried npm run installDebug but it had an error. I then duplicated the node_modules/ohnogit/node_modules/nodegit/build/Release to node_modules/ohnogit/node_modules/nodegit/build/Debug and everything worked.

    Atom maintainers need to trigger a post install hook for that module


    Edit: this should be reopened. This is a real bug (atleast on Linux machines)

  25. lock commented on Apr 7, 2018

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

  26. locked and limited conversation to collaborators on Apr 7, 2018
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

    bugbuild-errorlinux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions