nats-io / nsc

Tool for creating nkey/jwt based configurations
Apache License 2.0
101 stars 44 forks source link

Not able to install nsc on windows machine #629

Closed WAG10 closed 10 months ago

WAG10 commented 11 months ago

What version were you using?

Not applicable

What environment was the server running in?

Windows

Is this defect reproducible?

Not sure

Given the capability you are leveraging, describe your expectation?

We should be able to install nsc on windows machine

Given the expectation, what is the defect you are observing?

once we run the command to install nsc we get below error: Microsoft Windows [Version 10.0.17763.5122] (c) 2018 Microsoft Corporation. All rights reserved.

C:\Users\winuser>curl -L https://raw.githubusercontent.com/nats-io/nsc/master/install.py | python % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 5307 100 5307 0 0 24654 0 --:--:-- --:--:-- --:--:-- 25271 Traceback (most recent call last): File "", line 195, in File "", line 94, in main AttributeError: module 'os' has no attribute 'uname'. Did you mean: 'name'?

aricart commented 10 months ago

@WAG10 I believe you can use the powershell installer for that. See https://github.com/nats-io/nsc/blob/main/install.ps1

WAG10 commented 10 months ago

Thanks a ton @aricart !! This worked.