Search code examples
node.jsnpmnodegit

running npm install unbuilds global npm


I have a project that depends on nodegit.

When I run
npm install -g .

I get this output at some point:

output1

When npm finishes installing, I lose access to it in the path:

output2

I end up having to run 'n', to change to a previous version of node, then run 'n' again to change to the latest version of node and in the end run 'npm install -g npm@latest' to get the latest version of npm.


Solution

  • This is actually an issue with the nodegit project. You can follow it in https://github.com/nodegit/nodegit/issues/561 which led to https://github.com/nodegit/nodegit/issues/567

    Nothing i can do but wait.