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

25 lines
487 B
Markdown
Raw Normal View History

# npm doctor
> Check the health of the npm environment.
> More information: <https://docs.npmjs.com/cli/commands/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`