react-native-ble-plx icon indicating copy to clipboard operation
react-native-ble-plx copied to clipboard

Mac install error

Open dllen opened this issue 9 years ago • 6 comments

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:

dllen avatar Nov 11 '17 10:11 dllen

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.

amrsekilly avatar Nov 11 '17 17:11 amrsekilly

yarn add [email protected]

Worked for me.

amrsekilly avatar Nov 11 '17 22:11 amrsekilly

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.

petrbela avatar Nov 20 '17 17:11 petrbela

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

rknell avatar Nov 27 '17 22:11 rknell

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.

Cierpliwy avatar Nov 30 '17 20:11 Cierpliwy

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.

modularity avatar Dec 14 '17 01:12 modularity