1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00

pages/common/*: put npm in code ticks (#14280)

This commit is contained in:
Sebastiaan Speck 2024-10-20 18:00:55 +02:00 committed by GitHub
parent 4043aaec0d
commit c29c5d1305
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 12 additions and 12 deletions

View file

@ -19,7 +19,7 @@
`lambo new --{{vue|bootstrap|react}} {{app_name}}` `lambo new --{{vue|bootstrap|react}} {{app_name}}`
- Install npm dependencies after the project has been created: - Install `npm` dependencies after the project has been created:
`lambo new --node {{app_name}}` `lambo new --node {{app_name}}`

View file

@ -8,7 +8,7 @@
`ncu` `ncu`
- List outdated global npm packages: - List outdated global `npm` packages:
`ncu --global` `ncu --global`

View file

@ -3,19 +3,19 @@
> Check the health of the npm environment. > Check the health of the npm environment.
> More information: <https://docs.npmjs.com/cli/commands/npm-doctor>. > More information: <https://docs.npmjs.com/cli/commands/npm-doctor>.
- Run all default health checks for npm: - Run all default health checks for `npm`:
`npm doctor` `npm doctor`
- Check the connection to the npm registry: - Check the connection to the `npm` registry:
`npm doctor connection` `npm doctor connection`
- Check the versions of Node.js and npm in use: - Check the versions of Node.js and `npm` in use:
`npm doctor versions` `npm doctor versions`
- Check for permissions issues with npm directories and cache: - Check for permissions issues with `npm` directories and cache:
`npm doctor permissions` `npm doctor permissions`

View file

@ -3,7 +3,7 @@
> Open the npm page, Yarn page, or GitHub repository of a package in the web browser. > Open the npm page, Yarn page, or GitHub repository of a package in the web browser.
> More information: <https://github.com/sindresorhus/npm-home>. > More information: <https://github.com/sindresorhus/npm-home>.
- Open the npm page of a specific package in the web browser: - Open the `npm` page of a specific package in the web browser:
`npm-home {{package}}` `npm-home {{package}}`

View file

@ -3,10 +3,10 @@
> Check whether a package or organization name is available on npm. > Check whether a package or organization name is available on npm.
> More information: <https://github.com/sindresorhus/npm-name-cli>. > More information: <https://github.com/sindresorhus/npm-name-cli>.
- Check if a specific package name is available in the npm registry: - Check if a specific package name is available in the `npm` registry:
`npm-name {{package}}` `npm-name {{package}}`
- Find similar package names in the npm registry: - Find similar package names in the `npm` registry:
`npm-name --similar {{package}}` `npm-name --similar {{package}}`

View file

@ -3,6 +3,6 @@
> Identifies why an npm package is installed. > Identifies why an npm package is installed.
> More information: <https://github.com/amio/npm-why>. > More information: <https://github.com/amio/npm-why>.
- Show why an npm package is installed: - Show why an `npm` package is installed:
`npm-why {{package}}` `npm-why {{package}}`

View file

@ -4,11 +4,11 @@
> Note: This command is deprecated! Use `pnpm exec` and `pnpm dlx` instead. > Note: This command is deprecated! Use `pnpm exec` and `pnpm dlx` instead.
> More information: <https://cuyl.github.io/pnpm.github.io/pnpx-cli>. > More information: <https://cuyl.github.io/pnpm.github.io/pnpx-cli>.
- Execute the binary from a given npm module: - Execute the binary from a given `npm` module:
`pnpx {{module_name}}` `pnpx {{module_name}}`
- Execute a specific binary from a given npm module, in case the module has multiple binaries: - Execute a specific binary from a given `npm` module, in case the module has multiple binaries:
`pnpx --package {{package_name}} {{module_name}}` `pnpx --package {{package_name}} {{module_name}}`