Skip to content
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

/path/to/key.json error #5

Open
T0F1Q2007 opened this issue Mar 21, 2023 · 1 comment
Open

/path/to/key.json error #5

T0F1Q2007 opened this issue Mar 21, 2023 · 1 comment

Comments

@T0F1Q2007
Copy link

I think i should replace this with my tokens path. The error:
node:internal/modules/cjs/loader:998
throw err;
^

Error: Cannot find module '/path/to/key.json'
Require stack:

  • /home/velizadetofiq1/wallet-android-codelab/backend/generic_pass.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at Module._load (node:internal/modules/cjs/loader:841:27)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object. (/home/velizadetofiq1/wallet-android-codelab/backend/generic_pass.js:13:21)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Module._load (node:internal/modules/cjs/loader:878:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/home/velizadetofiq1/wallet-android-codelab/backend/generic_pass.js'
    ]
    }

Node.js v18.12.1

@Jaie55
Copy link

Jaie55 commented Apr 23, 2023

Create a service account

  1. In the Google Cloud console, open Service Accounts
  2. Enter a name, ID, and description for your service account
  3. Select CREATE AND CONTINUE
  4. Select DONE

Create a service account key

  1. Select your service account
  2. Select the KEYS menu
  3. Select ADD KEY, then Create new key
  4. Select the JSON key type
  5. Select CREATE

Then, go to your Windows environment variables and add it like this:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants