Reputation:
Is it possible to select Angular version when creating a new project? That is, I have installed globally Angular 8 , and I want to create a project on Angular 7. How can this be done without updating all the Angular modules in turn (example: npm i @angular/animations@7
, etc.)?
Upvotes: 6
Views: 2337
Reputation: 21377
you can create a local Angular-cli environnement
Upvotes: 2
Reputation: 1316
Try using the Node version Manager. You can install and keep all the version You need and switch between the version for your projects.Very useful for people working in multiple Angular projects in different versions.
Node Version Manager - Simple bash script to manage multiple active node.js versions
Upvotes: 2
Reputation: 22213
You can create a new folder and install angular 7 in it.
npm install @angular/[email protected]
Note: Do not use -g
(This is for global installation)
When you will create a new project in that folder with ng new
, the version of the app will be 7.
Upvotes: 11