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

Error: Cannot find module '../build/Debug/nodegit.node' after installation #78

Closed
lgarest opened this issue Apr 26, 2018 · 6 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@lgarest
Copy link

lgarest commented Apr 26, 2018

Hey I was curious about your Reacto project and gave it a try.

I cloned your repo and followed your installation steps, after yarn install everything was looking fine but once I run yarn run electron:dev I get the Error: Cannot find module '../build/Debug/nodegit.node' error. This happens as well for me if I run the project separately as you recommand.

I'm running a macOS High Sierra v10.13.3 and the node version of this error is v8.9.4. Probably is some unhandled dependency but...

Here is the screenshot with the stacktrace:
screen shot 2018-04-26 at 09 47 40

@eveningkid
Copy link
Owner

eveningkid commented Apr 26, 2018

Hi Luis and thanks for sharing!
This issue seems to come from your environment.

You can try to rebuild the package using the following:

cd node_modules/nodegit && node-gyp rebuild

Also, node-git documentation recommends installing Xcode command line tools if not already.

@eveningkid
Copy link
Owner

@lgarest could you tell me if that worked for you?

@eveningkid eveningkid added the bug Something isn't working label May 2, 2018
@eveningkid eveningkid self-assigned this May 2, 2018
@lgarest
Copy link
Author

lgarest commented May 2, 2018

Yep, works like a charm, I didn't have installed Xcode command line tools. It should be put in the readme / installation notes right?

@eveningkid
Copy link
Owner

Yes, sure. Could you tell me what worked out for you? :)
I will update the readme file accordingly unless you want to contribute.
Let me know!

@lgarest
Copy link
Author

lgarest commented May 2, 2018

I deleted the node_modules folder, installed Xcode command line tools and yarn install. The classical 'Have you tried to switch it off and on again?'

@eveningkid
Copy link
Owner

Alright, I referenced this issue in the readme file. Thank you Luis :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants