Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
dandv opened this issue Jan 29, 2025 · 0 comments
Open

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

dandv opened this issue Jan 29, 2025 · 0 comments

Comments

@dandv
Copy link
Contributor

dandv commented Jan 29, 2025

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant