You're mid-deadline, your build pipeline just threw a journaliste error, and you have forty minutes before stand-up. You don't need a 30-page white paper. You need a sequence of concrete actions you can execute while your coffee cools. That's exactly what this guide delivers: a prioritized, time-boxed troubleshooting path designed for people whose calendars are already packed.
The 60-Second Diagnostic: What's Actually Broken?
Before touching any config or code, spend the first minute identifying the failure layer. Busy professionals lose the most time by jumping straight into edits without classifying the error. Grab your terminal, run the exact journaliste command that failed, and read the first two lines of output.
Sort the output into one of three buckets:
- Environment bucket: You see a missing binary, a version mismatch, or a ReferenceError pointing to an undefined variable. This means the runtime context is incomplete — likely a stale
node_modulesor a missing shell alias. - Config bucket: The tool starts, reads your YAML or JSON, then chokes on an unrecognized key or a path that no longer exists on your machine. This is almost always a file you renamed or a teammate's merge that shifted a path.
- Permission bucket: The process launches but dies with EPERM or EACCES. You lack write access to the output directory, or your sandbox profile is blocking the tool's temp folder.
Whichever bucket you land in tells you exactly which section below to skip to. If you cannot classify it within 60 seconds, capture the full log to a text file and move to the escalation path later — do not let this step consume more than a minute of your morning.
The 5-Minute Fast-Track Fix Sequence
Once you've classified the error, work through the steps that match your bucket. Each step is timed so you can set a phone timer and stop if you're not making progress.
For the environment bucket (aim: 2 minutes):
- Run
npm ls journaliste(or the equivalent for your package manager) and confirm the resolved version matches what yourpackage.jsonpins. If it doesn't, runnpm install journaliste@pinned-version. - Clear the local cache:
rm -rf node_modules/.cache && npm cache clean --force. - Re-run the command with
--verbose. If the ReferenceError disappears, your issue was a corrupted install artifact.
For the config bucket (aim: 2.5 minutes):
- Open the
journaliste.config.js(or.yml) and verify every absolute path still resolves. Runls -laagainst each referenced directory. - If a teammate changed a file name in the last pull, update the path or add a symlink:
ln -s new/location old/location. - Validate the config with
node -e "require('./journaliste.config.js')"before re-running the full pipeline.
For the permission bucket (aim: 1 minute):
- Check ownership:
stat -c "%U %G" output-dir. If it's not your user, runsudo chown -R $USER:output-diron the target folder. - If you're on macOS and using a sandboxed app, grant Full Disk Access to Terminal in System Settings → Privacy & Security, then relaunch.
Set your timer for five minutes. If the command passes, you're done. If not, stop and move to the next section instead of spiraling.
The "Do This Once, Never Worry" Prevention Setup
Busy people hate repeating the same fix. After your hot-fix, spend an additional three minutes wiring in a guardrail so the next occurrence is automatic.
Add a pre-flight script to your repo root:
#!/usr/bin/env bash
set -euo pipefail
# Verify journaliste binary
command -v journaliste >/dev/null || { echo "journaliste not in PATH"; exit 1; }
# Validate config paths
node -e "require('./journaliste.config.js')" || { echo "Config validation failed"; exit 1; }
# Confirm output dir is writable
touch output-dir/.write-test && rm output-dir/.write-test || { echo "Output dir not writable"; exit 1; }
echo "All checks passed. Safe to run journaliste."
Hook this into your CI pipeline as a pre-build step, and add it to your local pre-commit hook (.git/hooks/pre-commit). Now the three failure modes above are caught before they ever reach your terminal at 9:47 a.m. on a Monday. You also eliminate the "it worked yesterday" mystery, because the script fails fast with a readable message instead of a cryptic ReferenceError.
When 10 Minutes Isn't Enough: Escalation Paths
If the fast-track sequence did not resolve the issue within your time box, stop guessing and escalate with context. Busy professionals escalate poorly by saying "it's broken" — that wastes the help you're about to ask for.
Before pinging a colleague or opening a ticket, assemble this four-item snapshot:
- The exact command and flags you ran.
- The full error output (copy-paste, not a screenshot).
- The three-bucket classification you identified in step one.
- What you already tried (the fast-track steps, with pass/fail for each).
With that snapshot, a peer can usually resolve the remaining 20% of the problem in a two-minute read. Without it, you'll spend another hour explaining what the terminal already told you.
Quick FAQs
I only have three minutes before a meeting. What's the single fastest action?
Run the --verbose flag on the journaliste command. In 80% of cases the verbose log names the exact file or variable that's undefined, saving you from re-reading the entire pipeline.
My pre-flight script passes locally but fails in CI. Why?
CI runners often use a different Node version or lack your shell aliases. Pin the Node version in .nvmrc, replace any alias with the full binary path inside the script, and run the script once on a fresh CI container to confirm it's self-contained.
Should I just delete node_modules and reinstall everything?
Only as a last resort. A full reinstall takes 3-5 minutes and re-introduces the risk of a version drift if your lockfile is stale. Use it after you've confirmed the problem is a corrupted install artifact, not a logic or config error.