React-native-ble-plx: Mac install error

Created on 11 Nov 2017  路  6Comments  路  Source: Polidea/react-native-ble-plx

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: node ./postinstall.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall 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:

Most helpful comment

With new postinstall script I can see error message. Closing as it is not an issue of library itself. Hopefully with #29 we will be able to get rid of building issues once and for all.

All 6 comments

I have the same error too. I'm using it with create-react-native-app.
Here's my error:

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node ./postinstall.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall 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/amr/.npm/_logs/2017-11-11T17_33_40_178Z-debug.log

This is the content of the log file: https://gist.github.com/amrsekilly/1235133c5a76af73940cf94a93d18a4e

I'm using Node v8.7.0.

yarn add [email protected]

Worked for me.

From >=0.6.4 it should actually print the error message (in npm at least; yarn doesn't print it in the console):

Warning: Carthage is required to compile frameworks for iOS backend. You can install it with brew: brew install carthage. After installation go to ./node_modules/react-native-ble-plx and run ./build_ios_frameworks.sh or reinstall node module.

Ok, so piecing all this together...

All of a sudden I couldn't build, tried yarn update and all sorts and nothing happened, dropped back to npm and got the same error above.

Tried a brew install carthage and it said it was already installed... but it could be updated!

TLDR; brew update carthage

With new postinstall script I can see error message. Closing as it is not an issue of library itself. Hopefully with #29 we will be able to get rid of building issues once and for all.

Just installed the latest version of the library via npm and received the error "Failed at the [email protected] postinstall script." I have successfully updated carthage with brew but still receive the error. Any suggestions on how to resolve this? For now, I installed 0.6.3 without error.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cltsang picture cltsang  路  4Comments

biks152207 picture biks152207  路  3Comments

samthui picture samthui  路  4Comments

alfacommunication-alessandro picture alfacommunication-alessandro  路  4Comments

brycejacobs picture brycejacobs  路  5Comments