Skip to main content

Common Issues

Config File Not Found

Error Message:
Cause: envcheck looks for .envcheck.yaml in the current directory by default. Solutions:
Initialize a new config file in your project root:
This creates a .envcheck.yaml file with example configuration.
Use the --config flag to point to your config file:
Or use a relative path:
Make sure you’re running envcheck from the correct directory:

Invalid YAML Syntax

Error Message:
Cause: Your .envcheck.yaml file has syntax errors. Solutions:
1

Check indentation

YAML is whitespace-sensitive. Use 2 spaces for indentation (not tabs):
2

Validate quotes

Version strings must be quoted:
3

Use a YAML validator

Validate your YAML syntax online or with a tool:

Tool Not Found

Error Message:
Cause: The required tool is not installed or not in your PATH. Solutions:
Install the missing tool:
Verify the tool is in your PATH:
If not in PATH, add it to your shell profile:
Run with --verbose to see more details:

Version Mismatch

Error Message:
Cause: The installed version doesn’t meet the requirements specified in your config. Solutions:
Upgrade to a compatible version:
If the installed version is acceptable, update .envcheck.yaml:
Use version managers to switch between versions:

Environment Variable Not Set

Error Message:
Cause: A required environment variable is missing. Solutions:
Set the variable in your shell:
Or add to your shell profile for persistence:
Create a .env file and load it before running envcheck:
.env
Load it using source or export:
If the variable is not critical, mark it as optional:

Port Already in Use

Error Message:
Cause: Another process is already using the required port. Solutions:
Identify what’s using the port:
Kill the process using the port:
Configure your application to use a different port:
.envcheck.yaml

File Not Found

Error Message:
Cause: A required file is missing. Solutions:
Create the missing file:
Verify the path in your config is correct:
If the file is not critical:

Network Check Failing

Error Message:
Cause: Network connectivity issues or the service is down. Solutions:
Verify you have internet access:
Corporate firewalls may block requests. Try:
Make sure the URL is correct and accessible:
If working offline, comment out network checks:

Debugging Tips

Use Verbose Mode

Enable verbose output to see detailed information:
This shows:
  • Config file loading details
  • Exact version numbers detected
  • Full error messages
  • Debug information

Use JSON Output

Get structured output for easier debugging:
Filter for specific issues:

Check Config Location

envcheck searches for config in this order:
  1. Path specified with --config flag
  2. .envcheck.yaml in current directory
  3. .envcheck.yaml in parent directories (up to git root)
Verify which config is being used:

Validate Semver Requirements

Test your version requirements:
Common semver patterns:
  • ">=18.0.0" - At least 18.0.0
  • "^18.0.0" - Compatible with 18.x.x (18.0.0 to 18.99.99)
  • "~18.0.0" - Approximately 18.0.x (18.0.0 to 18.0.99)
  • "*" - Any version

Getting Help

GitHub Issues

Report bugs or request features

Configuration Reference

Review all configuration options

CLI Commands

See all available commands and flags

Examples

Check out working examples
If you encounter an issue not listed here, please open an issue on GitHub with:
  • Output from envcheck --verbose
  • Your .envcheck.yaml config (remove any secrets)
  • Your environment (OS, shell, tool versions)