Skip to content
This repository was archived by the owner on Sep 9, 2022. It is now read-only.

Homedir bug in windows #121

Closed
david-tomson opened this issue Nov 19, 2021 · 2 comments
Closed

Homedir bug in windows #121

david-tomson opened this issue Nov 19, 2021 · 2 comments
Assignees
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@david-tomson
Copy link
Member

when I run secman init in windows

node:internal/process/promises:227
          triggerUncaughtException(err, true /* fromPromise */);
          ^

[Error: ENOENT: no such file or directory, open 'C:\undefined\.secman\settings.json'] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open',
  path: 'C:\\undefined\\.secman\\settings.json'
}

we have to change /constants/index.ts in DOT_SECMAN_PATH

export const HOMEDIR: any =
  process.platform === "win32" ? "USERPROFILE" : "HOME";

export const DOT_SECMAN_PATH = `${HOMEDIR}/.secman`;

like this

@github-actions
Copy link

Welcome to your first issue, you can type any issue

@abdfnx abdfnx added bug Something isn't working wontfix This will not be worked on labels Nov 19, 2021
@abdfnx abdfnx moved this to Todo 📝 in 🗺️ Roadmap Nov 19, 2021
@abdfnx abdfnx moved this from Todo 📝 to In Progress🚧 in 🗺️ Roadmap Nov 19, 2021
@abdfnx
Copy link
Contributor

abdfnx commented Nov 20, 2021

done

@abdfnx abdfnx closed this as completed Nov 20, 2021
Repository owner moved this from In Progress🚧 to Done 🌟 in 🗺️ Roadmap Nov 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working wontfix This will not be worked on
Projects
Status: Done 🌟
Development

No branches or pull requests

2 participants