Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Can't install DaTree on windows11(x64) #287

Closed
helper-uttam opened this issue Nov 24, 2021 · 10 comments
Closed

Can't install DaTree on windows11(x64) #287

helper-uttam opened this issue Nov 24, 2021 · 10 comments
Labels
bug Something isn't working

Comments

@helper-uttam
Copy link

Hi there I'm having problem in installing datree on win11(x64) when I ran the command
curl https://get.datree.io | /bin/bash
Result :

[V] Downloaded Datree
unzip:  cannot find or open datree-latest.zip, datree-latest.zip.zip or datree-latest.zip.ZIP.
cp: cannot stat 'datree-latest/datree': No such file or directory
/bin/bash: line 29: sudo: command not found
rm: cannot remove 'datree-latest.zip': No such file or directory
[V] Finished Installation

 Usage: $ datree test ~/.datree/k8s-demo.yaml
 Using Helm? => https://hub.datree.io/helm-plugin

then I tried datree verison but It says bash: datree: command not found

then i tried $ iwr -useb https://get.datree.io/windows_install.ps1 | iex
Output

bash: iwr: command not found
bash: iex: command not found
@helper-uttam helper-uttam added the bug Something isn't working label Nov 24, 2021
@alexfedin
Copy link
Contributor

Hi @helper-uttam, to install datree on windows you need to run the command iwr -useb https://get.datree.io/windows_install.ps1 | iex, but from what you describe you tried to run curl https://get.datree.io | /bin/bash which is a linux command and it's not supposed to work on windows OS.

Then I see that you ran the iwr -useb https://get.datree.io/windows_install.ps1 | iex command but got the errors:
bash: iwr: command not found bash: iex: command not found

This command is supposed to run on Windows and not supported on Linux.
You get these errors when you try to run the command on Linux.

Do you run by chance a Linux virtual machine on Windows? if so what is the linux version you are running?
If that's not the case, make sure you are running the correct command for the OS you are using

(This is described in our docs homepage: https://hub.datree.io/#a-1-install-datrees-cli-integration)

@helper-uttam
Copy link
Author

Hi @helper-uttam, to install datree on windows you need to run the command iwr -useb https://get.datree.io/windows_install.ps1 | iex, but from what you describe you tried to run curl https://get.datree.io | /bin/bash which is a linux command and it's not supposed to work on windows OS.

Then I see that you ran the iwr -useb https://get.datree.io/windows_install.ps1 | iex command but got the errors: bash: iwr: command not found bash: iex: command not found

This command is supposed to run on Windows and not supported on Linux. You get these errors when you try to run the command on Linux.

Do you run by chance a Linux virtual machine on Windows? if so what is the linux version you are running? If that's not the case, make sure you are running the correct command for the OS you are using

(This is described in our docs homepage: https://hub.datree.io/#a-1-install-datrees-cli-integration)

Nopes, I'm not using any linux vm. But I tried all the commands that are for windows like iwr -useb https://get.datree.io/windows_install.ps1 | iex. But it didn't worked for me

@eyarz
Copy link
Member

eyarz commented Nov 24, 2021

Did you try it on PowerShell (as admin)?

@helper-uttam
Copy link
Author

Yes obviously! That was the first thing I have done.

@eyarz
Copy link
Member

eyarz commented Nov 24, 2021

🤔 interesting.
Can you please run $PSversionTable inside your PowerShell and paste here a screenshot
Like that:
image

@helper-uttam
Copy link
Author

Here it is @eyarz
Screenshot (83)

@eyarz
Copy link
Member

eyarz commented Nov 24, 2021

I see you have an error in your terminal - maybe this is what causing the installation problem...?

@helper-uttam
Copy link
Author

Hurray! Installed @eyarz ! Thankyou so much :)

@beingtechsavy
Copy link

Hello everybody,
I am installing datree but I am running into mishaps.
I tried the installation command for windows and switched to powershell and tried the path setup command.
Yet it is throwing error saying datree is not recognized when I run 'datree'.
Please help! :)
Screenshot (57)

@eyarz
Copy link
Member

eyarz commented Sep 13, 2022

For future reference, this is how @beingtechsavy solved his issue:
#788

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants