Config creating problem #8518
-
PS C:\Users\alexa> vendor/bin/rector No "rector.php" config found. Should we generate it for you? [yes]:
In RecursiveDirectoryIterator.php line 108: RecursiveDirectoryIterator::__construct(C:\Users\alexa\Local Settings\2010-2023_Viber_Media_S.a): Отказано в доступ In RecursiveDirectoryIterator.php line 53: RecursiveDirectoryIterator::__construct(C:\Users\alexa\Local Settings\2010-2023_Viber_Media_S.a): Отказано в доступ process [-n|--dry-run] [-a|--autoload-file AUTOLOAD-FILE] [--no-progress-bar] [--no-diffs] [--output-format OUTPUT-FORMAT] [--debug] [--memory-limit MEMORY-LIMIT] [--clear-cache] [--port PORT] [--identifier IDENTIFIER] [--xdebug] [--] [ How can this be fixed? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I think that because you're trying install rector directly in "C:\Users\alexa" which a home directory of user "alexa" which has system directory in it which php not allowed to access, try create a project instead, and install rector there, eg:
Then, setup rector per-project there, ensure that rector config in root of the project |
Beta Was this translation helpful? Give feedback.
-
Thanks for the help! It worked. |
Beta Was this translation helpful? Give feedback.
I think that because you're trying install rector directly in "C:\Users\alexa" which a home directory of user "alexa" which has system directory in it which php not allowed to access, try create a project instead, and install rector there, eg:
Then, setup rector per-project there, ensure that rector config in root of the project