Skip to content

Default install directory for 'deno install' #2630

@nayeemrmn

Description

@nayeemrmn

deno install -h:

...
OPTIONS:
    ...
    -d, --dir <dir>                Installation directory (defaults to $HOME/.deno/bin)
...

Wouldn't it be more intuitive for it to default to $DENO_DIR/bin if it exists?

If someone leaves everything to its default, the installation directory of deno and the installation directory of executables created with deno install will coincide at $HOME/.deno/bin.

In my case, however, I installed deno to /opt/deno and DENO_DIR is set there. Now if I deno install something without -d, it will still be put into $HOME/.deno. It is obviously confusing for this location to exist in my situation. It would be more consistent with the default-only case if the installation directory for deno install defaulted to $DENO_DIR/bin, since DENO_DIR should be known at this time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions