I have a problem installing dependencies from sfdx-project.json. I created a Second Generation Package and generated a new version. I specified dependency as follows:
"dependencies": [
{
"subscriberPackageVersionId": "04t0V000001Dyaf"
}
But when I try to run
sfdx force:package:install --package 04t...
I get the following error
ERROR: Encountered errors installing the package!,Installation errors:
1) Invalid Upgrade., Details: The package you're installing depends on package 'CloudCraze', version '3.119'. Install package 'CloudCraze' in the target org before you install package '...'.
Shouldn't sfdx install dependencies by itself for Second Generation Packages?
Or dependencies are only used for a successful creation of package versions?
P.S. I know that I can install the dependent package using with preceding sfdx command, but still.