Error: ENOENT: no such file or directory, open 'package-lock.json'Solution: Ensure the lockfile path is correct and the file exists. Verify the path is relative to the current working directory or use an absolute path.
Error: Unable to parse lockfileSolution: Verify the lockfile is valid JSON (npm) or YAML (yarn). May indicate corruption. Re-generate lockfile with npm install or yarn install.
Error: --path is requiredSolution: Always provide --path argument or specify it in configuration file. The path can be a single file or glob pattern.
Error: Failed to parse configuration fileSolution: Check JSON/YAML syntax in configuration files. Validate with JSON/YAML linter. Ensure proper escaping in JSON strings.
Error: --validate-https and --allowed-schemes cannot be used togetherSolution: Use either --validate-https (strict HTTPS) or --allowed-schemes (flexible), not both. Choose based on whether you need to allow git-based dependencies.
Error: --validate-package-names requires --allowed-hostsSolution: Always specify --allowed-hosts when using --validate-package-names. Package name validation requires host information.
✗ Package 'example@1.0.0' uses non-HTTPS URL: http://registry.example.com/exampleSolution: Update package to use HTTPS or add host to --allowed-hosts if legitimate. If package must use HTTP, use --allowed-schemes instead of --validate-https.
✗ Package 'example@1.0.0' uses unauthorized host: untrusted-registry.comSolution: Add host to --allowed-hosts if trusted, or investigate why package is using untrusted registry. Verify package source is legitimate.
✗ Package 'example@1.0.0' missing integrity hash
✗ Package 'example@1.0.0' uses unsupported integrity algorithm: sha1Solution: Update package to include sha512 integrity hash, or exclude using --integrity-exclude for legacy packages. Package names must match exactly as they appear in lockfile.
✗ Package name 'example' does not match resolved URL pathSolution: Investigate package aliasing. Use --allowed-package-name-aliases for legitimate aliases. Format: "package-name:resolved-name".
DEBUG=lockfile-lint to see detailed validation process