React-native-ble-plx: issues installing

Created on 25 Nov 2016  路  12Comments  路  Source: Polidea/react-native-ble-plx

tall"
npm ERR! node v7.0.0
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE

npm ERR! [email protected] postinstall: bash build_ios_frameworks.sh
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'bash build_ios_frameworks.sh'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the react-native-ble-plx package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! bash build_ios_frameworks.sh
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs react-native-ble-plx
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls react-native-ble-plx
npm ERR! There is likely additional logging output above.

bug

Most helpful comment

Can you check version 0.5.0 if this still happens?

All 12 comments

Solved by using Git BASH. Windows doesn't support .sh files on command line.

I'll definitely check out and fix that issue on Windows.

I found this solution.
http://www.windowscentral.com/how-install-bash-shell-command-line-windows-10
which appears to work with installation command "npm install react-native-ble-plx" but not with approach to edit package.json to include dependency for react-native-ble-plx followed by installation command "npm install"

Darwin 15.3.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--save" "react-native-ble-plx"
npm ERR! node v7.9.0
npm ERR! npm v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1

npm ERR! [email protected] postinstall: bash build_ios_frameworks.sh
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'bash build_ios_frameworks.sh'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the react-native-ble-plx package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! bash build_ios_frameworks.sh
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs react-native-ble-plx
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls react-native-ble-plx
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/marwazribi/.npm/_logs/2017-05-05T14_59_43_032Z-debug.log

and i'm a mac user

Can you check version 0.5.0 if this still happens?

@Cierpliwy 132426 verbose stack Error: [email protected] postinstall: bash build_ios_frameworks.sh

Is it your full error? Can you enter library directory and run this script by hand?:

cd ./node_modules/react-native-ble-plx/
./build_ios_frameworks.sh

@Cierpliwy I ran the script on windows and I cant run sh without bash.

Probably I will need to create node based script to be platform agnostic. If you want this feature faster, maybe you can tackle this problem and send me PR?

@Cierpliwy I have the same error on examples/ReactBLEScanner

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: bash build_ios_frameworks.sh
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.

xcode 9

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nriccar picture nriccar  路  3Comments

devgeno picture devgeno  路  4Comments

kevinmeyvaert picture kevinmeyvaert  路  4Comments

haohcraft picture haohcraft  路  5Comments

adyanced picture adyanced  路  5Comments