Closed nikking closed 3 years ago
@nikking I never tested this on Windows so there might be some rough edges to fix. Are you able to edit the credentials-manager.js file inside the installed package? If so, can you try adding a console.log here https://github.com/ruimarinho/gsts/blob/master/credentials-manager.js#L37 (logging dir
) and https://github.com/ruimarinho/gsts/blob/master/credentials-manager.js#L182 (logging path
and dirname(path)
).
Thanks, I was able to get it working by replacing your mkdirP function with fs.promises.mkdir. So line 182 could be:
await ffs.promises.mkdir(dirname(path), { recursive: true });
Is this something you'd take a PR for?
Actually I would appreciate if you could help me fix the current version so I can ship v2.4.2 with the existing ffs
implementation (which was made to be node v8 compliant), and then revert it completely with the launch of v2.5.0 as I don't want to continue supporting it (https://github.com/ruimarinho/gsts/commit/362d1db0fb0029781d304b16aee95010aa7e2163).
My suspicion is that we cannot use join('/', …)
but instead we need to use path.separator
in order to make Windows-friendly. Could you give that a go?
@nikking I have fixed the issue. Will be submitting a PR soon.
I tried on two Windows machines and found the same error. The error occurs after the Chromium window closes after a successful Google authentication.