taidai
taidai•3w ago

Installing with script from website does not work directly

I know this isn't technically Deno CLI, but it's the closest related tag I could find. I used the install script from deno.com today: curl -fsSL https://deno.land/install.sh | sh It results in an error mkdir: /home/<username>: Operation not supported I was able to install it by specifying the DENO_INSTALL variable as /Users/<username>/.deno. I don't need help anymore, but I would expect this to work without needing to specify anything on Mac.
3 Replies
bartlomieju
bartlomieju•3w ago
Cc @nathanwhit
nathanwhit
nathanwhit•3w ago
That's odd, we default to $HOME/.deno as the install location. What's your HOME env var set to? (output of running echo $HOME )
taidai
taidaiOP•3w ago
Hi Nathan, the output of echo $HOME is /Users/<my_username> Yeah, I'm not sure either. I recall /home being involved somehow when I was figuring this out, but now I don't see the connection edit: ah, right the error output is about /home. Idk why it's referencing that and not the output of $HOME. Some symlink magic? Or could it be that the user that the script operates under has a different result from echo $HOME? Idk how that stuff works tbh. I added echo "The script is running as $(id -un)" to the install.sh file and got
sh install.sh
The script is running as <my_username>
mkdir: /home/<my_username>: Operation not supported
sh install.sh
The script is running as <my_username>
mkdir: /home/<my_username>: Operation not supported
I'm on: - MacOS 14.6.1 M1 Pro - Warp v0.2024.11.05.08.02.stable_02 - zsh 5.9 (x86_64-apple-darwin23.0) If you need me to see something, please @ me @nathanwhit , otherwise I'm unlikely to see it 🙂