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:
parent
4043aaec0d
commit
c29c5d1305
7 changed files with 12 additions and 12 deletions
|
@ -19,7 +19,7 @@
|
|||
|
||||
`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}}`
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
`ncu`
|
||||
|
||||
- List outdated global npm packages:
|
||||
- List outdated global `npm` packages:
|
||||
|
||||
`ncu --global`
|
||||
|
||||
|
|
|
@ -3,19 +3,19 @@
|
|||
> Check the health of the npm environment.
|
||||
> 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`
|
||||
|
||||
- Check the connection to the npm registry:
|
||||
- Check the connection to the `npm` registry:
|
||||
|
||||
`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`
|
||||
|
||||
- Check for permissions issues with npm directories and cache:
|
||||
- Check for permissions issues with `npm` directories and cache:
|
||||
|
||||
`npm doctor permissions`
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
> Open the npm page, Yarn page, or GitHub repository of a package in the web browser.
|
||||
> 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}}`
|
||||
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
> Check whether a package or organization name is available on npm.
|
||||
> 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}}`
|
||||
|
||||
- Find similar package names in the npm registry:
|
||||
- Find similar package names in the `npm` registry:
|
||||
|
||||
`npm-name --similar {{package}}`
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
> Identifies why an npm package is installed.
|
||||
> 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}}`
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
> Note: This command is deprecated! Use `pnpm exec` and `pnpm dlx` instead.
|
||||
> 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}}`
|
||||
|
||||
- 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}}`
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue