paytabscom / react-native-paytabs-library

Bridge library for native IOS/Android Paytabs libraries
https://site.paytabs.com/en/
MIT License
15 stars 15 forks source link

Error while installing #2

Closed arhmnsh closed 3 years ago

arhmnsh commented 4 years ago

Hi guys! I'm getting this error when running npm install

image
Logs ↓

```sh Rahamans-MacBook-Pro:DailyJob AbdulRahaman$ npm install @paytabscom/react-native-paytabs-library@1.0.6 --save npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/@paytabscom%2freact-native-paytabs-library - Not found npm ERR! 404 npm ERR! 404 '@paytabscom/react-native-paytabs-library@1.0.6' is not in the npm registry. npm ERR! 404 You should bug the author to publish it (or use the name yourself!) npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url. npm ERR! A complete log of this run can be found in: npm ERR! /Users/AbdulRahaman/.npm/_logs/2020-01-30T05_02_28_010Z-debug.log \```

cogtea commented 4 years ago

@arhmnsh please check following:

You need an access token to publish, install, and delete packages in GitHub Packages. You can use a personal access token to authenticate with your username directly to GitHub Packages or the GitHub API. You can use a GITHUB_TOKEN to authenticate using a GitHub Actions workflow.

https://help.github.com/en/github/managing-packages-with-github-packages/configuring-npm-for-use-with-github-packages#authenticating-to-github-packages

arhmnsh commented 4 years ago

Hi @cogtea, I think there is a misunderstanding. I'm not trying to publish my package, I'm trying to use your package by following the instructions in readme,

cogtea commented 4 years ago

@arhmnsh Please make sure you add https://github.com/paytabscom/react-native-paytabs-library/blob/master/example/.npmrc#L1 to your project

https://help.github.com/en/github/managing-packages-with-github-packages/configuring-npm-for-use-with-github-packages#installing-a-package

AhmedHF commented 4 years ago

@arhmnsh 1- create an .npmrc file to include a line specifying GitHub Packages URL and the account owner, and write this line in it "registry=https://npm.pkg.github.com/paytabscom" like this https://github.com/paytabscom/react-native-paytabs-library/blob/master/example/.npmrc#L1 2- go https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line to generate Personal access tokens use it to logging in to npm $ npm login --registry=https://npm.pkg.github.com

Username: USERNAME
Password: TOKEN // from step 2 Email: PUBLIC-EMAIL-ADDRESS

3- install package