Open mshoaib1695 opened 4 years ago
Hi @paytabscom , @chockwadi am also facing the same issue.
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.7' 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 It was specified as a dependency of 'example' npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url.
@chockwadi This works fine for installing npm install @paytabscom/react-native-paytabs-emulator@1.2.2 --save
In order to be able to install the package, on top of your solution I had to add couple of lines.
created .npmrc file in the root of the project and added the following:
@paytabscom:registry=https://npm.pkg.github.com @{{OWNER}}:registry=https://npm.pkg.github.com //npm.pkg.github.com/:_authToken={{TOKEN}} In this case the owner will be: AdlyPayTabs >> @AdlyPayTabs:registry=https://npm.pkg.github.com
And to generate a personal token, navigate in your GitHub account to:
Settings > Developer settings > Personal access tokens Generate new token From the permissions select at least read:packages Click Generate token and copy the token
when I run this command
npm install @paytabscom/react-native-paytabs-library@1.0.7 --save
in my project I get these errors` npm ERR! code E401 npm ERR! Unable to authenticate, need: Basic realm="GitHub Package Registry"
npm ERR! A complete log of this run can be found in: npm ERR! /Users/muhammadsaleem/.npm/_logs/2020-09-03T14_15_25_711Z-debug.log muhammadsaleem@Muhammads-MacBook-Pro test % npm install @paytabscom/react-native-paytabs-library@1.0.7 --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.7' 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/muhammadsaleem/.npm/_logs/2020-09-03T14_15_55_240Z-debug.log`