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:
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.
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.