Skip to content

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

Closed

Description

@lgarest

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

Activity

  1. eveningkid commented on Apr 26, 2018

    @eveningkid
    Owner

    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.

  2. eveningkid commented on May 1, 2018

    @eveningkid
    Owner

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

  3. self-assigned this
    on May 2, 2018
  4. lgarest commented on May 2, 2018

    @lgarest
    Author

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

  5. eveningkid commented on May 2, 2018

    @eveningkid
    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!

  6. lgarest commented on May 2, 2018

    @lgarest
    Author

    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?'

  7. eveningkid commented on May 3, 2018

    @eveningkid
    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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions