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

cant install nodegit if the directive name in the path has space #1082

Copy link
Copy link
@luffyzc

Description

@luffyzc
Issue body actions

when i try to install nodegit i get this error:

`{ Error: Command failed: /Users/luffyzc/My Program/Nodejs/API Documentation/nodegit/vendor/libssh2/configure --with-libssl-prefix=/Users/luffyzc/My Program/Nodejs/API Documentation/nodegit/vendor/openssl/openssl
/bin/sh: /Users/luffyzc/My: No such file or directory

at ChildProcess.exithandler (child_process.js:202:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:850:16)
at Socket.<anonymous> (internal/child_process.js:323:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:492:12)

killed: false,
code: 127,
signal: null,
cmd: '/Users/luffyzc/My Program/Nodejs/API Documentation/nodegit/vendor/libssh2/configure --with-libssl-prefix=/Users/luffyzc/My Program/Nodejs/API Documentation/nodegit/vendor/openssl/openssl' }
/bin/sh: /Users/luffyzc/My: No such file or directory

[nodegit] ERROR - Could not finish preinstall
{ Error: Command failed: /Users/luffyzc/My Program/Nodejs/API Documentation/nodegit/vendor/libssh2/configure --with-libssl-prefix=/Users/luffyzc/My Program/Nodejs/API Documentation/nodegit/vendor/openssl/openssl
/bin/sh: /Users/luffyzc/My: No such file or directory

at ChildProcess.exithandler (child_process.js:202:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:850:16)
at Socket.<anonymous> (internal/child_process.js:323:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:492:12)

killed: false,
code: 127,
signal: null,
cmd: '/Users/luffyzc/My Program/Nodejs/API Documentation/nodegit/vendor/libssh2/configure --with-libssl-prefix=/Users/luffyzc/My Program/Nodejs/API Documentation/nodegit/vendor/openssl/openssl' }`

According to this error message/bin/sh: /Users/luffyzc/My: No such file or directory I think it get failed when it process the path which has directive "My Program". So i tried to install at other path, it works, and i went back to change the directive name to remove the space in the directive name , it works this time.

So I guess this preinstall has some problem when it process path with complicate directive name with space like"My Program". Hope this can be fixed.

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.