Skip to content

[email protected] install: node lifecycleScripts/preinstall && node lifecycleScripts/install #16

@BaoPham92

Description

@BaoPham92

sudo npm install react.cli -g
Password:
/usr/local/bin/react -> /usr/local/lib/node_modules/react.cli/index.js

[email protected] install /usr/local/lib/node_modules/react.cli/node_modules/nodegit
node lifecycleScripts/preinstall && node lifecycleScripts/install

[nodegit] Running pre-install script
[nodegit] Configuring libssh2.
{ Error: Command failed: /usr/local/lib/node_modules/react.cli/node_modules/nodegit/vendor/libssh2/configure --with-libssl-prefix=/usr/local/lib/node_modules/react.cli/node_modules/nodegit/vendor/openssl/openssl
/usr/local/lib/node_modules/react.cli/node_modules/nodegit/vendor/libssh2/configure: line 2059: config.log: Permission denied
/usr/local/lib/node_modules/react.cli/node_modules/nodegit/vendor/libssh2/configure: line 2069: config.log: Permission denied

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 Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

killed: false,
code: 1,
signal: null,
cmd: '/usr/local/lib/node_modules/react.cli/node_modules/nodegit/vendor/libssh2/configure --with-libssl-prefix=/usr/local/lib/node_modules/react.cli/node_modules/nodegit/vendor/openssl/openssl' }
/usr/local/lib/node_modules/react.cli/node_modules/nodegit/vendor/libssh2/configure: line 2059: config.log: Permission denied
/usr/local/lib/node_modules/react.cli/node_modules/nodegit/vendor/libssh2/configure: line 2069: config.log: Permission denied

[nodegit] ERROR - Could not finish preinstall
{ Error: Command failed: /usr/local/lib/node_modules/react.cli/node_modules/nodegit/vendor/libssh2/configure --with-libssl-prefix=/usr/local/lib/node_modules/react.cli/node_modules/nodegit/vendor/openssl/openssl
/usr/local/lib/node_modules/react.cli/node_modules/nodegit/vendor/libssh2/configure: line 2059: config.log: Permission denied
/usr/local/lib/node_modules/react.cli/node_modules/nodegit/vendor/libssh2/configure: line 2069: config.log: Permission denied

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 Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

killed: false,
code: 1,
signal: null,
cmd: '/usr/local/lib/node_modules/react.cli/node_modules/nodegit/vendor/libssh2/configure --with-> libssl-prefix=/usr/local/lib/node_modules/react.cli/node_modules/nodegit/vendor/openssl/openssl' }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node lifecycleScripts/preinstall && node lifecycleScripts/install
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/kuso/.npm/_logs/2018-04-17T17_30_10_031Z-debug.log

This is the error I get whilst trying to run the install command.

I noticed the

[email protected] install: node lifecycleScripts/preinstall && node lifecycleScripts/install

So I decided to do:

sudo npm install node lifecycleScripts/preinstall && node lifecycleScripts/install

Then I get this as a return:

npm ERR! Error while executing:
npm ERR! /usr/local/bin/git ls-remote -h -t ssh://[email protected]/lifecycleScripts/preinstall.git
npm ERR!
npm ERR! ERROR: Repository not found.
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/kuso/.npm/_logs/2018-04-17T17_32_26_654Z-debug.log

Oddly enough when I run the command on the terminal inside my code editor, it kind of works.

When I try to access the react.cli by typing in "react" I get this error too.

module.js:549
throw err;
^

Error: Cannot find module '../build/Debug/nodegit.node'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/usr/local/lib/node_modules/react.cli/node_modules/nodegit/dist/nodegit.js:18:12)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)

Things I have tried:

  • sudo xcode-select --install
  • brew doctor/prune/link
  • Reinstalling node/npm whilst manually deleting node/node_modules files

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions