2024-10-19 06:35:06 -04:00
|
|
|
# npm doctor
|
|
|
|
|
|
|
|
> Check the health of the npm environment.
|
|
|
|
> More information: <https://docs.npmjs.com/cli/commands/npm-doctor>.
|
|
|
|
|
2024-10-20 18:00:55 +02:00
|
|
|
- Run all default health checks for `npm`:
|
2024-10-19 06:35:06 -04:00
|
|
|
|
|
|
|
`npm doctor`
|
|
|
|
|
2024-10-20 18:00:55 +02:00
|
|
|
- Check the connection to the `npm` registry:
|
2024-10-19 06:35:06 -04:00
|
|
|
|
|
|
|
`npm doctor connection`
|
|
|
|
|
2024-10-20 18:00:55 +02:00
|
|
|
- Check the versions of Node.js and `npm` in use:
|
2024-10-19 06:35:06 -04:00
|
|
|
|
|
|
|
`npm doctor versions`
|
|
|
|
|
2024-10-20 18:00:55 +02:00
|
|
|
- Check for permissions issues with `npm` directories and cache:
|
2024-10-19 06:35:06 -04:00
|
|
|
|
|
|
|
`npm doctor permissions`
|
|
|
|
|
|
|
|
- Validate the cached package files and checksums:
|
|
|
|
|
|
|
|
`npm doctor cache`
|