You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
When launching Atom, I get nothing but what appears to be a Chrome JavaScript error page.
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.
Reacted by sneakypete81, Srujal Sunil Kachhela, Matteo Capucci, David Barri, Aboobacker MK, Narrat, Simon Ser, Jacob, Anwar, Hamza Shezad and 3 more
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)
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.)
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)
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))
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.
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)
Reacted by Giangiacomo Zaffini, Martí Zamora, Marc and gosuto.eth
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!
Activity
Arakaki commentedon Feb 18, 2016
I got same error.
winstliu commentedon Feb 18, 2016
/cc @joshaber
Arakaki commentedon Feb 18, 2016
This is the error detail.
joshaber commentedon Feb 18, 2016
Hmm very odd! What happens if you try
npm install nodegit?mssever commentedon Feb 19, 2016
Running
npm install nodegitchanges 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.)mssever commentedon Feb 19, 2016
I rebuilt atom, but the issue persists.
korova08 commentedon Feb 26, 2016
same problem with Debian testing (32 bits)
mingjunyang commentedon Mar 10, 2016
Atom : 1.7.0-dev-ac35fec
Electron: 0.36.8
Chrome : 47.0.2526.110
Node : 5.1.1
Arakaki commentedon Mar 18, 2016
v1.5.3 works well.
But v1.6.0 and v1.7.0-beta0 still have the probrem. 😿
roshimon commentedon Mar 19, 2016
I have the same issue too. So what's the solution for this ?
52 remaining items
artynet commentedon Apr 8, 2016
so i think it's just a matter of updating the nodegit version in the package.json file to 0.12.2
rafaelsoaresbr commentedon Apr 9, 2016
Yes @artynet
Since nodegit/nodegit#980 has been merged.
I've just opened a pull request to fix AUR package:
sjug/atom-editor#5
mahdavipanah commentedon Apr 10, 2016
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 nodegitP.S. I installed and updated atom from source code, so I'm not sure if the same problem exists within binary packages.
rafaelsoaresbr commentedon Apr 10, 2016
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:
Didn't solve this problem on 32bit machines (See #10819 (comment))
joshaber commentedon Apr 11, 2016
As of #11426 we should be able to nodegit's 32-bit binaries too.
roshimon commentedon Apr 16, 2016
Upgrading to atom 1.8.0-beta1 has fixed the issue for me. Working flawlessly now :)
AnwarShah commentedon Apr 17, 2016
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!rafaelsoaresbr commentedon Apr 17, 2016
@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.
Sfinx commentedon Apr 17, 2016
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" ;)
Sfinx commentedon Apr 17, 2016
Sorry, my fault - missed "atom-beta" binary name, 1.8.0beta works ! ;)
gzaffin commentedon Apr 28, 2016
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.
nikolowry commentedon May 24, 2016
This is still a problem in master (1.90-dev). I had to cd into
node_modules/ohnogit/node_modules/nodegit/and runnpm run install. I triednpm run installDebugbut it had an error. I then duplicated thenode_modules/ohnogit/node_modules/nodegit/build/Releasetonode_modules/ohnogit/node_modules/nodegit/build/Debugand 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)
lock commentedon Apr 7, 2018
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!