2

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

Krzysztof Platis
  • 1,183
  • 5
  • 14

1 Answers1

3

How to create Angular app in specific version

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

How to install Spartacus in specific version

If you want to install Spartacus in specific version (e.g. v4), please run:

ng add @spartacus/schematics@4
Krzysztof Platis
  • 1,183
  • 5
  • 14
  • I am still getting the same error after following both the steps. - > ng "add" "@spartacus/schematics@4" i Using package manager: npm ‼ Package has unmet peer dependencies. Adding the package may not succeed. Please note that for most Spartacus features to be properly configured, the Account feature is required. Assisted Services Module, Import/Export, Saved Cart, Quick Order, Checkout, Order, Product - ...r, - Personalization, User - Account, User - Profile Must use import to load ES Module: C:\Tools\workspace\app-name\node_modules\@angular\compiler\fesm2015\compiler.mjs – a p Mar 01 '23 at 08:47