Closed simantstha closed 2 years ago
Hi @simantstha
Can you share the composer.json
file which is causing this issue.
Also, some of the time problems maybe OS does not have patch module install.
Try this patch --version
to check the version
or
sudo yum install patch
to install if missing.
{
"name": "apigee/devportal-kickstart-project",
"description": "Composer project template for the Apigee Developer Portal Drupal distribution.",
"type": "project",
"license": "GPL-2.0-or-later",
"homepage": "https://www.drupal.org/project/apigee_devportal_kickstart",
"support": {
"docs": "https://www.drupal.org/docs/8/modules/apigee-developer-portal-kickstart"
},
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
},
{
"type": "package",
"package": {
"name": "furf/jquery-ui-touch-punch",
"version": "dev-master",
"type": "drupal-library",
"dist": {
"url": "https://github.com/furf/jquery-ui-touch-punch/archive/master.zip",
"type": "zip"
}
}
}
],
"require": {
"php": "^7.4 || ^8.0",
"apigee/apigee_devportal_kickstart": "^2",
"composer/installers": "^1.9",
"drupal/apigee_m10n": "^2",
"drupal/commerce": "^2.21",
"drupal/core-composer-scaffold": "^9",
"drupal/core-project-message": "^9",
"drupal/core-recommended": "^9",
"drupal/google_analytics": "^3.1",
"drupal/jsonapi_extras": "^3.17",
"drupal/smtp": "^1.0",
"furf/jquery-ui-touch-punch": "dev-master"
},
"require-dev": {
"apigee/apigee-mock-client-php": "^1.1",
"drupal/core-dev": "^9",
"drush/drush": "^11"
},
"conflict": {
"drupal/drupal": ""
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"sort-packages": true,
"process-timeout": 0,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"cweagans/composer-patches": true,
"composer/installers": true,
"drupal/core-composer-scaffold": true,
"drupal/core-project-message": true
}
},
"extra": {
"drupal-scaffold": {
"locations": {
"web-root": "web/"
}
},
"installer-paths": {
"web/core": ["type:drupal-core"],
"web/libraries/{$name}": ["type:drupal-library"],
"web/modules/contrib/{$name}": ["type:drupal-module"],
"web/profiles/contrib/{$name}": ["type:drupal-profile"],
"web/themes/contrib/{$name}": ["type:drupal-theme"],
"drush/Commands/contrib/{$name}": ["type:drupal-drush"],
"web/modules/custom/{$name}": ["type:drupal-custom-module"],
"web/themes/custom/{$name}": ["type:drupal-custom-theme"]
},
"drupal-core-project-message": {
"include-keys": ["homepage", "support"],
"post-create-project-cmd-message": [
"
Hi @simantstha
Composer.json
looks good
What is the patch version on your system?
To debug the issue further can you try composer install -vvv
or composer update -vvv
and share the error message, so we can see the exact error.
This is the message for composer update -vvv also i am working on windows can you tell me the best way to install patch ? I researched online they dont seem to work
Hi @simantstha The composer and patch module on the windows system doesn't seem to be configured properly. IMO in windows you need to add the patch.exe path to the Environment Variables -> System variables -> Path Check out this link https://www.drupal.org/project/wxt/issues/3035117 and for composer check out https://getcomposer.org/doc/01-basic-usage.md
Hi @simantstha We hope your issue has been resolved. Closing this issue for now, Please feel free to re-open this issue if you need any further help related to Apigee.
Some patches fail to apply while installing via composer.