Get Started

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 --version

Add 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 ~/.zshrc

Add 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.

Command Not Found | Memoria Troubleshooting | Memoria