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
npmregistry:
npm doctor connection
- Check the versions of Node.js and
npmin use:
npm doctor versions
- Check for permissions issues with
npmdirectories and cache:
npm doctor permissions
- Validate the cached package files and checksums:
npm doctor cache