deno_install icon indicating copy to clipboard operation
deno_install copied to clipboard

curl -fsSL https://deno.land/install.sh | sh dont work in ubuntu WSL2

Open ricky900 opened this issue 3 years ago • 3 comments

when i run curl -fsSL https://deno.land/install.sh | sh give me this error: mkdir: cannot create directory ‘/Users’: Permission denied

ricky900 avatar Apr 15 '22 15:04 ricky900

@dsherret can you reproduce this?

lucacasonato avatar Apr 15 '22 15:04 lucacasonato

Nope.

$ curl -fsSL https://deno.land/install.sh | sh
######################################################################## 100.0%
Archive:  /home/david/.deno/bin/deno.zip
  inflating: /home/david/.deno/bin/deno
Deno was installed successfully to /home/david/.deno/bin/deno
Run 'deno --help' to get started

@ricky900 what does the output look like when you run?

$ echo $HOME
/home/david
$ echo $DENO_INSTALL
/home/david/.deno

Seems like for some reason on your system it's going to /Users

dsherret avatar Apr 15 '22 16:04 dsherret

Look in your zshrc or bashrc and make sure you don't have wrong path for any DENO* variables. I had one and I got permission denied.

My guess is you copied your mac environment to ubuntu.

ralyodio avatar Aug 30 '22 13:08 ralyodio