3.4 KiB
3.4 KiB
Troubleshooting Guide
This guide provides solutions to common issues and debugging tips.
Frequently Asked Questions (FAQs)
-
Q: How do I update the CLI to the latest version?
- A: If installed globally via npm, you can usually update with
npm install -g <package-name>@latest
. If run from source, pull the latest changes from the repository and rebuild usingnpm run build
.
- A: If installed globally via npm, you can usually update with
-
Q: Where are the CLI configuration files stored?
- A: The CLI configuration is typically managed within
packages/cli/src/config/
. Refer to CLI Configuration for more details.
- A: The CLI configuration is typically managed within
-
Q: Where are the core configuration files stored?
- A: The core configuration is typically managed within
packages/core/src/config/
. Refer to Core Configuration for more details.
- A: The core configuration is typically managed within
Common Error Messages and Solutions
-
Error:
EADDRINUSE
(Address already in use) when starting the server.- Cause: Another process is already using the port the server is trying to bind to.
- Solution:
- Stop the other process using the port.
- Configure the server to use a different port (see
core/configuration.md
).
-
Error: Command not found (when using the CLI).
- Cause: The CLI is not correctly installed or not in your system's PATH.
- Solution:
- Ensure the CLI installation was successful.
- If installed globally, check that your npm global binary directory is in your PATH.
- If running from source, ensure you are using the correct command to invoke it (e.g.,
node packages/cli/dist/index.js ...
).
-
Error:
MODULE_NOT_FOUND
or import errors.- Cause: Dependencies are not installed correctly, or the project hasn't been built.
- Solution:
- Run
npm install
to ensure all dependencies are present. - Run
npm run build
to compile the project.
- Run
-
Error: "Operation not permitted" or "Permission denied" or similar.
- Cause: If sandboxing is enabled, then the application is likely attempting an operation restricted by your sandbox, such as writing outside the project directory or system temp directory.
- Solution: See README for more information on sandboxing, including how to customize your sandbox configuration.
Debugging Tips
-
CLI Debugging:
- Use the
--verbose
flag (if available) with CLI commands for more detailed output. - Check the CLI logs, often found in a user-specific configuration or cache directory.
- Use the
-
Core Debugging:
- Check the server console output for error messages or stack traces.
- Increase log verbosity if configurable.
- Use Node.js debugging tools (e.g.,
node --inspect
) if you need to step through server-side code.
-
Tool Issues:
- If a specific tool is failing, try to isolate the issue by running the simplest possible version of the command or operation the tool performs.
- For
run_shell_command
, ensure the command works directly in your shell first. - For file system tools, double-check paths and permissions.
-
Pre-flight Checks:
- Always run
npm run preflight
before committing code. This can catch many common issues related to formatting, linting, and type errors.
- Always run
If you encounter an issue not covered here, consider searching the project's issue tracker on GitHub or reporting a new issue with detailed information.