Command Not Found
Resolve 'command not found' errors when running npx or memoria commands. Learn how to fix PATH issues and verify npm installation.
The Problem
When running Memoria commands, you see 'command not found' or 'npx is not recognized'.
Common Causes
- Node.js/npm is not installed
- npm is not in your system PATH
- Shell configuration not reloaded after installation
Solutions
Verify Node.js Installation
Check if Node.js and npm are properly installed.
node --version
npm --versionAdd npm to PATH (macOS/Linux)
Add npm's bin directory to your system PATH.
# Add to ~/.zshrc or ~/.bashrc
export PATH="$PATH:$(npm bin -g)"
# Reload shell
source ~/.zshrcAdd npm to PATH (Windows)
Ensure npm is in your PATH by reinstalling Node.js with the 'Add to PATH' option checked, or manually add the npm directory to your system environment variables.