mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
30 lines
580 B
Plaintext
30 lines
580 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# npm doctor
|
|
|
|
> Check the health of the npm environment.
|
|
> More information: <https://docs.npmjs.com/cli/npm-doctor/>.
|
|
|
|
- Run all default health checks for `npm`:
|
|
|
|
`npm doctor`
|
|
|
|
- Check the connection to the `npm` registry:
|
|
|
|
`npm doctor connection`
|
|
|
|
- Check the versions of Node.js and `npm` in use:
|
|
|
|
`npm doctor versions`
|
|
|
|
- Check for permissions issues with `npm` directories and cache:
|
|
|
|
`npm doctor permissions`
|
|
|
|
- Validate the cached package files and checksums:
|
|
|
|
`npm doctor cache`
|