Symptom

cd C:\Users\user\My Documents\project
# Error: 'Documents\project' is not recognized

Fix: Wrap the Path in Double Quotes

cd "C:\Users\user\My Documents\project"

Prevention: Use Space-Free Folder Names

Keep your development folders space-free:

C:\Users\username\projects\project-name

For a better terminal experience when working with paths, see Set Up Windows Terminal.

  • Fiverr - Find freelance developers and tech experts