MobileFirst-Platform-Developer-Center / MFPStarterReactNative

1 stars 5 forks source link

Failed at the react-native-ibm-mobilefirst@8.0.2018072413 postinstall script 'chmod +x scripts/postinstall.sh && ./scripts/postinstall.sh'. #1

Open mohithkovela opened 6 years ago

mohithkovela commented 6 years ago

react-native-ibm-mobilefirst npm package failed to get installed on windows machine as it has got failed to run chmod command which is part of postinstall script.

igor90 commented 6 years ago

Hi @mohithkovela I have the solution for it npm install react-native-ibm-mobilefirst --ignore-scripts It will installed needed folder in node_modules.

After that you need to copy file from https://git.ng.bluemix.net/ibmmfpf/react-native-ibm-mobilefirst/tree/master/android/src/main/assets to you project folder your_project/android/app/src/main/

and add text from it https://git.ng.bluemix.net/ibmmfpf/react-native-ibm-mobilefirst/blob/master/scripts/bridge.settings to you file your_project/android/settings.gradle

And it works for me.