Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Can't require nodegit without building it explicitly #340

Copy link
Copy link
@rbelouin

Description

@rbelouin
Issue body actions

Hi,

After having run npm install --save https://github.com/nodegit/nodegit/archive/master.tar.gz, I can't require nodegit correctly. I get the following npm error:

module.js:340
    throw err;
          ^
Error: Cannot find module 'nodegit'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Users/rbelouin/work/clever-cloud/clever-tools/src/app.js:4:15)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)

It seems that lib/nodegit.js is the main file of the nodegit package, but it does not exist. I have to run a manual BUILD_ONLY=true node install.js to create that file. But it's annoying.

Am I doing something wrong?

Reactions are currently unavailable

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.