-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error During npm install #21
Comments
@ArcadeRenegade Bro , you cannot install it via npm . The package have some issues . I think razorpay team should fix it soon . But you can do it just by downloading the zip file from github and rename it from react-native-razorpay-master to react-native-razorpay and copy to node-modules-folder . (note that github zips have two layers of master folder , so copy the folder that's inside , like react-native-razorpay-master/reat-native-razorpay-master ) |
Thanks. I'll try a manual installation. I'm not doing any iOS development right now. Just Android. That is why I am confused about this ./download_ios_framework.sh error. |
@ArcadeRenegade Owh fine.. Just ignore that . Mention me if you have further problem . Razorpay is good , they are cutting-edge. Where do you live , bangalore ? |
I'm in California. My friend and I are developing app to be released in India :) RazorPay seems very good. It is a lot like what we have here in the US called Stripe. |
@ArcadeRenegade Exactly . I loved stripe , but since they are not in India yet , I had to use razorpay . A startup , but they seems good too . Happy developing . |
I got it working! Thanks @PARAGJYOTI |
@ArcadeRenegade You are welcome ! |
@ArcadeRenegade @PARAGJYOTI I think I might have a hint as to why this is happening. Lemme speak to the other devs and we'll think of a fix. |
We had the same issue when we try to run Solved by removing #!/bin/sh
## Run this script after installing the module
curl -O http://downloads.razorpay.com/Razorpay.framework-0.15.0.zip
unzip Razorpay.framework-0.15.0.zip
rm -rf ios/Razorpay.framework
cp -r Razorpay.framework ios {
"name": "react-native-razorpay",
"version": "1.2.0",
"description": "React Native wrapper for Razorpay",
"main": "RazorpayCheckout.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"postinstall": "download_ios_framework.sh"
},
"repository": {
"type": "git",
"url": "git+https://github.com/razorpay/react-native-razorpay.git"
},
"dependencies": {
"react-native": ">=0.40.0"
},
"peerDependencies": {
"react-native": ">=0.40.0"
},
"keywords": [
"react-native",
"razorpay",
"payments"
],
"author": "Razorpay Developers <developers@razorpay.com> (https://razorpay.com/)",
"license": "MIT",
"homepage": "https://github.com/razorpay/react-native-razorpay#readme"
} |
@aneesv thanks that worked. forked the repo, applied the fix, then npm-installed from my fork repo. |
You guys should try this: 4726b8b |
that works! thanks. |
Hi, I get an error when trying to install this package using npm. Seems a post-install .sh script is failing.
OS: Windows 10
Node: v6.10.0
npm: v3.10.10
The text was updated successfully, but these errors were encountered: