I'm trying to self-host Supertokens Core, but it o...
# support-questions
j
I'm trying to self-host Supertokens Core, but it only works if I run it as administrator on Windows. I'm trying to start it when I start my server via npm's package.json, so I would prefer not to have to run my whole project as admin. How can I make sure that supertokens runs as admin on Windows and sudo on Linux? I've looked at
sudo-prompt
, but I'm not sure how to call it from a npm script like I can call
tsc
,
eslint
,
cross-env
, or
ts-node-dev
.
r
Hey @User
I’m not sure if there is a way to solve this in a quick way other than using docker
Try to run the core using the docker image and you won’t require it to run as admin
j
I think it would probably work if you know of a utility that aliases sudo on Windows. Do you know how the npm packages that I listed can run in the context of package.json but not in cmd?
I may eventually transition to Docker, but it is too heavy for my purposes so far.
r
I’m not sure about this. I don’t personally use windows
j
Thanks anyway. I might try to see if it would work with sudo on WSL
@User I solved my problem by installing gsudo: https://github.com/gerardog/gsudo
I left
sudo supertokens start ...
in package.json and it just works now
r
I see! Fair enough!
3 Views