Please use the project generator or manually generate the project directory~
The reason is very simple, because the directory where the project is located does not have write permission, usually:
Just sudo chmod a+w ./mulu to give everyone write permission for this directory
It becomes:
drwxrwxrwx
Then the error disappears~~
The above introduces the ThinkPHP framework error: The project directory is not writable and the directory cannot be automatically generated! Please use the project generator or manually generate the project directory ~, including the relevant content, I hope it will be helpful to friends who are interested in PHP tutorials.