-
Notifications
You must be signed in to change notification settings - Fork 101
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
Allow deno install
when running as deno
user
#170
Comments
Probably easier to instead change the |
see also #109 |
It's supposed to be accessible by both For the same reason, the devcontainers scripts installs |
|
I think I did not quite understand how what you said applies to my comment. But: ❯ docker run --rm --user deno denoland/deno:latest install https://deno.land/std/examples/welcome.ts
Download https://deno.land/std/examples/welcome.ts
Warning Implicitly using latest version (0.106.0) for https://deno.land/std/examples/welcome.ts
Download https://deno.land/[email protected]/examples/welcome.ts
Check https://deno.land/std/examples/welcome.ts
error: Permission denied (os error 13) ❯ docker run --rm --user deno denoland/deno:latest bash -c 'unset DENO_DIR; deno install https://deno.land/std/examples/welcome.ts'
error: Could not create TypeScript compiler cache location: "/home/deno/.cache/deno/gen"
Check the permission of the directory. |
Setting |
@wperron do you agree that |
Sorta: I think the use cases for I think the best way to make |
The problem is that |
Probably the
DENO_INSTALL_ROOT
will need to be changed to a folder where the non-root user has permission to write. Thedeno
binary could be installed to$DENO_INSTALL_ROOT/bin
instead and this folder added toPATH
.It could probably be
/opt/deno
: https://unix.stackexchange.com/a/20668/427940The text was updated successfully, but these errors were encountered: