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

nbe CLI issues on Windows #118

Open
bruth opened this issue Jul 18, 2023 Discussed in #117 · 3 comments
Open

nbe CLI issues on Windows #118

bruth opened this issue Jul 18, 2023 Discussed in #117 · 3 comments
Assignees
Labels
bug Confirmed reproducible bug

Comments

@bruth
Copy link
Collaborator

bruth commented Jul 18, 2023

Discussed in #117

Originally posted by twquan1 July 14, 2023
I had tried to download nbe file and paste at both "C:\nats-by-example-0.1.3" and "..\cmd\nbe" folder, then run the nbe script by this directory:
image
However I would receive this message, what do I did wrong here?

Sorry I am beginner here.

Edits: I had change the nbe file format into ".exe", and the cmd able to run the command alrdy but I received new error message like this:
image
I had installed docker desktop but this error are popping up instead, what configuration I still needed to edit to able to run this nbe cmd?

@bruth bruth added the bug Confirmed reproducible bug label Jul 18, 2023
@eric807791961
Copy link

Hi, I was encountering the same issue, hope this will help the others

simply add

imageTag = strings.Replace(imageTag, "\", "/", -1)

under line 128 and import "strings" in the docker.go file of the cmd/nbe folder

@debbyglance
Copy link

The above suggestion worked for me, except it looks like the discussion editor dropped a backslash when the code was pasted.

The correct fix is:

imageTag = strings.Replace(imageTag, "\\", "/", -1)

@suvy1
Copy link

suvy1 commented Jan 5, 2024

After updating the docker.go on line 128 , how to generate the nbe exe?

@scottf scottf self-assigned this Jun 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed reproducible bug
Projects
None yet
Development

No branches or pull requests

5 participants