Common problems
aml: command not foundOpen a new terminal, then check PATH.
not a PHPAML projectMove into the folder containing phpaml.json.
Permission deniedCheck project and cache permissions, then run aml doctor again.
GitHub unavailableCheck the connection or use --offline when archives are already cached.
A method that avoids false fixes.
Copy the exact message before changing anything. Then identify the command, current folder, and first error. A complete reinstall can temporarily hide the problem without explaining its cause.
- ReproduceRun the failing command once more.
- ObserveRecord the message, file, and current folder.
- DiagnoseUse aml doctor and begin with the first error.
- ConfirmRun exactly the same command after the fix.
Create and open your first application.
aml doctor
aml create task-app
cd task-app
aml serveThe chapter is complete when doctor reports no blocking error, phpaml.json exists, and the local page responds. Do not run aml install after a successful creation.
EXPLAINED SOLUTION
Verify evidence, not only commands.
- aml doctorproves that the global environment is usable.
- phpaml.jsonproves that you are at a PHPAML project root.
- runtime/proves that creation installed the engine.
- HTTP 200proves that the browser, server, and application completed the full cycle.
CHECK YOUR UNDERSTANDING
Why do we not run aml install in the normal solution?
Show the answer
Because aml create already installs the project. aml install is for rebuilding or deferred installation.
SUMMARY
What to remember
- Solve a problem from the first exact message.
- Always verify the current folder.
- doctor confirms the machine’s overall state.
- The final expected result is an HTTP response in the browser.