I'm trying to run a composer update from my webroot directory. When I use composer update drupal/core --with-dependencies
, it returns:
Package "drupal/core" listed for update is not installed. Ignoring.
Loading composer repositories with package information
Updating dependencies (including require-dev)
I wasn't sure if I needed to require the drupal/core package with composer? I tried that, but it had no effect. Following the advice of online forums, I adjusted the following settings in the composer.json file:
"require": {
"composer/installers": "^1.0.24",
"wikimedia/composer-merge-plugin": "~1.4",
"drupal/drush": "^6.0@RC",
"drush/drush": "~9.0"
},
"replace": {
"drupal/core": "~8.4"
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"preferred-install": "dist",
"autoloader-suffix": "Drupal8"
},
I changed the drush version to ~9.0 and the core version to ~8.4. I then deleted the /vendor directory and the composer.lock file. After running the update again, it updated a few other packages, but ignored core. I feel like I'm missing something simple. Any help is appreciated!