- Issue created by @Kumar Ashutosh
- 🇲🇽Mexico GafgarionMorua Puerto Vallarta
The error message indicates that your current user does not have the requisite privileges to create symbolic links when inserting Drush with Composer. The lack of privileges could be due to your user account type, or you might be running the command prompt without administrative rights.
You could try running the operation as an administrator to overcome this error. Below are the steps:
- Press the "Windows" key and type "cmd" or "Command Prompt".
- From the results, right-click on "Command Prompt" and opt to "Run as administrator" (you might need to confirm or key in a password).
- Once inside the command prompt, navigate to your project directory using the cd command (e.g., cd D:\xampp\htdocs\test\).
- After that, try running the Composer command once more (composer require drush/drush).
If you're facing challenges with the manual installation of Drush and other elements of a Drupal development environment, you might consider using DDEV. DDEV is an open-source tool that uses Docker to build a pre-packaged environment containing everything you need for Drupal development.
With DDEV, you don't have to worry about setting up Apache, Nginx, PHP, MySQL, Solr, or other services. Plus, it comes with Drush and other useful tools preinstalled.
To install DDEV on your machine, follow the instructions in the official DDEV documentation (https://ddev.readthedocs.io/en/stable/).
- Status changed to Needs work
7 months ago 4:56pm 4 June 2024 - 🇮🇳India gawalin
I am also facing the same issue. Is there a solution other than using DDEV?
- 🇮🇳India Kumar Ashutosh
@gawalin
Use GIt Bash or Windows Powershell Run as administrator. It will work.