Skip to content

Mangled formatting/punctuation for deno install + some missing aspects #1377

@dandv

Description

@dandv

At https://docs.deno.com/runtime/reference/cli/install/#type-checking-options-check:

so adding --check is redundant If the value of "all" is supplied

At https://docs.deno.com/runtime/reference/cli/install/#dependency-management-options-reload:

Reload source code cache (recompile TypeScript) no value Reload everything jsr:@std/http/file-server,jsr:@std/assert/assert-equals Reloads specific modules npm: Reload all npm modules npm:chalk Reload specific npm module.

At https://docs.deno.com/runtime/reference/cli/install/#options-location

Value of globalThis.location used by some web APIs.

At https://docs.deno.com/runtime/reference/cli/install/#options-v8-flags

At https://docs.deno.com/runtime/reference/cli/install/#deno-install---global-%5Bpackage_or_url%5D

Use this command to install provide package

Also, https://docs.deno.com/runtime/reference/cli/install/#options-dev should explain what exactly -D does.

Also, https://docs.deno.com/runtime/reference/cli/install/#dependency-management-options-node-modules-dir should explain the parameters and what the "mode" means, given the parameter is called "dir". One parameter is mentioned in passing, auto, in a Tip, "If you want to set up local node_modules directory" (typo: a local). Going just by the docs, that's the only parameter, and anything else is considered a directory, but this should be clarified, as it's not the case (the CLI shows more parameters). Also, auto is not entirely intuitive, as it didn't find a node_modules in the parent directory and created one in the current directory. The undocumented manual parameter did the same.

$ deno install --node-modules-dir=../
error: invalid value '../' for '--node-modules-dir[=<MODE>]': Invalid value '../': expected "auto", "manual" or "none"

$ deno install --node-modules-dir=manual ../
error: ../ was not found in either jsr or npm.

At this point I can't tell how to instruct Deno about the location of the node_modules dir I want to use. --root seems to only pertain to installing executables.

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