Install on Linux with Deno results in error

deno install -f --name silverbullet -A https://get.silverbullet.md
:warning: deno install behavior will change in Deno 2. To preserve the current behavior use the -g or --global flag.
error: Permission denied (os error 13)

I checked permissions in directory .deno
Read and write, execute OK
What else can I do?

What version of Deno are you running and how did you install it?

deno --version
deno 1.44.1 (release, x86_64-unknown-linux-gnu)
v8 12.6.228.3
typescript 5.4.5

curl -fsSL /install.sh | [email protected] | Deno | sh
deno install -f --name silverbullet --unstable-kv --unstable-worker-options -A https://get.silverbullet.md
Answer: command “deno” not found, however, you can install it:
sudo snap install deno
deno v1.44.1 from LukeWH installed
Deno did not appear in $PATH, so I added it manually and checked it:
echo $PATH
/home/ericdg40/.local/bin:/home/ericdg40/.nvm/versions/node/v20.12.2/bin:/home/ericdg40/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/ericdg40/.deno/bin

I can’t quite place all the commands you list there, but I suspect using a snap install may be the problem. I’d uninstall that one. I recommend using the official install install from deno.land:

curl -fsSL https://deno.land/install.sh | sh

And then indeed making sure your ~/.deno/bin is in your PATH.

I followed your advice,
thanks,
Silverbullet installed,
now eager to explore!

1 Like