capawesome-team / capacitor-nfc

⚡️ Capacitor plugin for reading and writing NFC tags.
https://capawesome.io/plugins/nfc/
MIT License
74 stars 14 forks source link

Hep installing this package #40

Closed amlwwalker closed 11 months ago

amlwwalker commented 11 months ago

Hi, seems this is the most relevant library for using nfc with ionic. I'm just having some issues installing it.

npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
npm WARN deprecated source-map-resolve@0.6.0: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
npm ERR! code E403
npm ERR! 403 403 Forbidden - GET https://npm.pkg.github.com/download/@capawesome-team/capacitor-nfc/5.0.2/972e469916ac2b711158b10a9f5fe0fd922c36fb - Permission permission_denied: read_package
npm ERR! 403 In most cases, you or one of your dependencies are requesting
npm ERR! 403 a package version that is forbidden by your security policy, or
npm ERR! 403 on a server you do not have access to.

npm ERR! A complete log of this run can be found in: /Users/alexwalker/.npm/_logs/2023-12-11T22_06_29_332Z-debug-0.log

My .npmrc file contains

@capawesome-team:registry=https://npm.pkg.github.com

I created a read API key in my tokens and ran

npm login --scope=@capawesome-team --auth-type=legacy --registry=https://npm.pkg.github.com

i put my github username and my token value as the username and password and then it says

Password: Logged in to scope @capawesome-team on https://npm.pkg.github.com/.

but when i then do npm install @capawesome-team/capacitor-nfc I get the above error.

Any support appreciated, thanks!

P.S Well that explains it. There's nothing in this package...

EDIT:

The contents of that log file is

0 verbose cli /opt/homebrew/Cellar/node/21.2.0/bin/node /opt/homebrew/bin/npm
1 info using npm@10.2.3
2 info using node@v21.2.0
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:/opt/homebrew/lib/node_modules/npm/npmrc Completed in 0ms
6 timing config:load:builtin Completed in 0ms
7 timing config:load:cli Completed in 1ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:/Users/alexwalker/dev/ionic/nPay/.npmrc Completed in 0ms
10 timing config:load:project Completed in 1ms
11 timing config:load:file:/Users/alexwalker/.npmrc Completed in 0ms
12 timing config:load:user Completed in 0ms
13 timing config:load:file:/opt/homebrew/etc/npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:setEnvs Completed in 1ms
16 timing config:load Completed in 4ms
17 timing npm:load:configload Completed in 4ms
18 timing config:load:flatten Completed in 1ms
19 timing npm:load:mkdirpcache Completed in 1ms
20 timing npm:load:mkdirplogs Completed in 0ms
21 verbose title npm install @capawesome-team/capacitor-nfc
22 verbose argv "install" "@capawesome-team/capacitor-nfc"
23 timing npm:load:setTitle Completed in 2ms
24 timing npm:load:display Completed in 0ms
25 verbose logfile logs-max:10 dir:/Users/alexwalker/.npm/_logs/2023-12-11T22_13_21_675Z-
26 verbose logfile /Users/alexwalker/.npm/_logs/2023-12-11T22_13_21_675Z-debug-0.log
27 timing npm:load:logFile Completed in 4ms
28 timing npm:load:timers Completed in 0ms
29 timing npm:load:configScope Completed in 0ms
30 timing npm:load Completed in 17ms
31 timing arborist:ctor Completed in 0ms
32 silly logfile start cleaning logs, removing 1 files
33 silly logfile done cleaning log files
34 timing idealTree:init Completed in 116ms
35 timing idealTree:userRequests Completed in 1ms
36 silly idealTree buildDeps
37 silly fetch manifest @capawesome-team/capacitor-nfc@*
38 timing arborist:ctor Completed in 0ms
39 http fetch GET 403 https://npm.pkg.github.com/@capawesome-team%2fcapacitor-nfc 452ms (cache skip)
40 silly placeDep ROOT @capawesome-team/capacitor-nfc@ OK for: nPay@0.0.1 want: *
41 timing idealTree:#root Completed in 459ms
42 timing idealTree:node_modules/@capawesome-team/capacitor-nfc Completed in 0ms
43 timing idealTree:buildDeps Completed in 460ms
44 timing idealTree:fixDepFlags Completed in 3ms
45 timing idealTree Completed in 581ms
46 timing command:install Completed in 586ms
47 verbose stack HttpErrorGeneral: 403 Forbidden - GET https://npm.pkg.github.com/@capawesome-team%2fcapacitor-nfc - Permission permission_denied: read_package
47 verbose stack     at /opt/homebrew/lib/node_modules/npm/node_modules/npm-registry-fetch/lib/check-response.js:95:15
47 verbose stack     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
47 verbose stack     at async RegistryFetcher.packument (/opt/homebrew/lib/node_modules/npm/node_modules/pacote/lib/registry.js:87:19)
47 verbose stack     at async RegistryFetcher.manifest (/opt/homebrew/lib/node_modules/npm/node_modules/pacote/lib/registry.js:118:23)
47 verbose stack     at async #nodeFromEdge (/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1049:19)
47 verbose stack     at async #buildDepStep (/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:917:11)
47 verbose stack     at async Arborist.buildIdealTree (/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:196:7)
47 verbose stack     at async Promise.all (index 1)
47 verbose stack     at async Arborist.reify (/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:159:5)
47 verbose stack     at async Install.exec (/opt/homebrew/lib/node_modules/npm/lib/commands/install.js:152:5)
48 verbose statusCode 403
49 verbose pkgid @capawesome-team/capacitor-nfc@*
50 verbose cwd /Users/alexwalker/dev/ionic/nPay
51 verbose Darwin 23.1.0
52 verbose node v21.2.0
53 verbose npm  v10.2.3
54 error code E403
55 error 403 403 Forbidden - GET https://npm.pkg.github.com/@capawesome-team%2fcapacitor-nfc - Permission permission_denied: read_package
56 error 403 In most cases, you or one of your dependencies are requesting
56 error 403 a package version that is forbidden by your security policy, or
56 error 403 on a server you do not have access to.
57 verbose exit 1
58 timing npm Completed in 663ms
59 verbose unfinished npm timer reify 1702332801750
60 verbose unfinished npm timer reify:loadTrees 1702332801752
61 verbose code 1