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

refresh token script fali #1270

Closed
1 task done
kerimc opened this issue Jul 23, 2023 · 2 comments
Closed
1 task done

refresh token script fali #1270

kerimc opened this issue Jul 23, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@kerimc
Copy link

kerimc commented Jul 23, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Describe The Bug

Not sure is real issue but can not detemine from log if scripti is boken or I missed something.

To Reproduce

nodejs --version
v12.22.12

npx -p ring-client-api ring-auth-cli

Expected behavior

no issue

Relevant log output

/root/.npm/_npx/93aaf524954b33a3/node_modules/ring-client-api/lib/rest-client.js:114
        this.hardwareIdPromise = this.authConfig?.hid || (0, util_1.getHardwareId)(this.authOptions.systemId);
                                                 ^

SyntaxError: Unexpected token '.'
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/root/.npm/_npx/93aaf524954b33a3/node_modules/ring-client-api/lib/refresh-token.js:5:23)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)

Screenshots

No response

Additional context

No response

OS

Debian11_7

Node.js Version

v12.22.12

NPM Version

7.5.22

ring-client-api

v

Operating System

Debian

@kerimc kerimc added the bug Something isn't working label Jul 23, 2023
@kerimc
Copy link
Author

kerimc commented Jul 23, 2023

to old nodejs verson.... update to latest fix issue

@kerimc kerimc closed this as completed Jul 23, 2023
@mores
Copy link

mores commented Aug 24, 2023

If on ubuntu - follow these steps:

  1. sudo npm cache clean -f
  2. sudo npm install -g n
  3. sudo n stable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants