节点能够安装Nodegit

时间:2018-07-04 06:46:05

标签: node.js npm npm-install nodegit

您好,我尝试安装nodegit,但遇到错误,尝试使用0.22.0和0.22.01版本。

[nodegit] Configuring libssh2.
{ Error: spawn /bin/sh ENOENT
    at _errnoException (util.js:1024:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
    at onErrorNT (internal/child_process.js:372:16)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
  code: 'ENOENT',
  errno: 'ENOENT',
  syscall: 'spawn /bin/sh',
  path: '/bin/sh',

 [nodegit] ERROR - Could not finish preinstall
npm verb node v8.9.3
npm verb npm  v5.6.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! nodegit@0.22.1 install: `node lifecycleScripts/preinstall && node lifecycleScripts/install`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the nodegit@0.22.1 install script.

0 个答案:

没有答案