Error: Cannot find module '../build/Debug/nodegit.node'

偏爱水蜜桃 2018-02-05 04:12:30
Error: Cannot find module '../build/Debug/nodegit.node'
at Function.Module._resolveFilename (module.js:538:15)
at Function.Module._load (module.js:468:25)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/home/slave/doit2/node_modules/nodegit/dist/nodegit.js:18:12)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/home/slave/doit2/app/controller/zookeeper.js:11:13)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32) code: 'MODULE_NOT_FOUND' }

-------------如下

[root@ doit2]# npm install nodegit -f
npm WARN using --force I sure hope you know what you are doing.

> nodegit@0.20.3 install /home/slave/doit2/node_modules/nodegit
> node lifecycleScripts/preinstall && node lifecycleScripts/install

[nodegit] Running pre-install script
[nodegit] Configuring libssh2.
{ Error: Command failed: /home/slave/doit2/node_modules/nodegit/vendor/libssh2/configure --with-libssl-prefix=/home/slave/doit2/node_modules/nodegit/vendor/openssl/openssl
/home/slave/doit2/node_modules/nodegit/vendor/libssh2/missing: Unknown `--is-lightweight' option
Try `/home/slave/doit2/node_modules/nodegit/vendor/libssh2/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
configure: error: No crypto library found!
Try --with-libssl-prefix=PATH
or --with-libgcrypt-prefix=PATH
or --with-wincng on Windows

at ChildProcess.exithandler (child_process.js:275:12)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Socket.stream.socket.on (internal/child_process.js:346:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at Pipe._handle.close [as _onclose] (net.js:554:12)
killed: false,
code: 1,
signal: null,
cmd: '/home/slave/doit2/node_modules/nodegit/vendor/libssh2/configure --with-libssl-prefix=/home/slave/doit2/node_modules/nodegit/vendor/openssl/openssl' }
/home/slave/doit2/node_modules/nodegit/vendor/libssh2/missing: Unknown `--is-lightweight' option
Try `/home/slave/doit2/node_modules/nodegit/vendor/libssh2/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
configure: error: No crypto library found!
Try --with-libssl-prefix=PATH
or --with-libgcrypt-prefix=PATH
or --with-wincng on Windows

[nodegit] ERROR - Could not finish preinstall
{ Error: Command failed: /home/slave/doit2/node_modules/nodegit/vendor/libssh2/configure --with-libssl-prefix=/home/slave/doit2/node_modules/nodegit/vendor/openssl/openssl
/home/slave/doit2/node_modules/nodegit/vendor/libssh2/missing: Unknown `--is-lightweight' option
Try `/home/slave/doit2/node_modules/nodegit/vendor/libssh2/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
configure: error: No crypto library found!
Try --with-libssl-prefix=PATH
or --with-libgcrypt-prefix=PATH
or --with-wincng on Windows

at ChildProcess.exithandler (child_process.js:275:12)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Socket.stream.socket.on (internal/child_process.js:346:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at Pipe._handle.close [as _onclose] (net.js:554:12)
killed: false,
code: 1,
signal: null,
cmd: '/home/slave/doit2/node_modules/nodegit/vendor/libssh2/configure --with-libssl-prefix=/home/slave/doit2/node_modules/nodegit/vendor/openssl/openssl' }

> nodegit@0.20.3 postinstall /home/slave/doit2/node_modules/nodegit
> node lifecycleScripts/postinstall

[nodegit] WARN - Could not finish postinstall
{ Error: Command failed: node "/home/slave/doit2/node_modules/nodegit/dist/nodegit.js"
module.js:540
throw err;
^

Error: Cannot find module '../build/Debug/nodegit.node'
at Function.Module._resolveFilename (module.js:538:15)
at Function.Module._load (module.js:468:25)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/home/slave/doit2/node_modules/nodegit/dist/nodegit.js:18:12)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)

at ChildProcess.exithandler (child_process.js:275:12)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Socket.stream.socket.on (internal/child_process.js:346:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at Pipe._handle.close [as _onclose] (net.js:554:12)
killed: false,
code: 1,
signal: null,
cmd: 'node "/home/slave/doit2/node_modules/nodegit/dist/nodegit.js"' }
npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN doit@1.0.0 No repository field.

+ nodegit@0.20.3
updated 1 package in 35.139s
...全文
1868 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

3,423

社区成员

发帖
与我相关
我的任务
社区描述
其他开发语言 其他开发语言
社区管理员
  • 其他开发语言社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧