How can I create an Angular app in specific version (e.g. v12)? And then how to install Spartacus in specific version (e.g. v4)?
The docs of Spartacus describe only how to install the latest version of Spartacus: ng add @spartacus/schematics@latest
And the docs of Angular describe only how to create a fresh Angular app using the currently installed (latest?) version of Angular: ng new app-name
If you want to create a fresh Angular app in specific Angular version (e.g. v12), please run:
npx @angular/cli@12 new app-name
If you want to install Spartacus in specific version (e.g. v4), please run:
ng add @spartacus/schematics@4