Closed marbug closed 6 years ago
If you want version X of angular, then install version X of the CLI.
For example, CLI v6 will always create Angular v6 projects.
We feel that the latest version of Angular is always the appropriate one for creating new projects.
Sorry, @alexeagle but I even remember, when projects, generated by latest versions of Angular, failed just after first run (i.e. without any changes) and I had to recheck and downgrade that versions manually :D So it sounds much better to have an ability to switch even to particular subversion of angular (I mean the appropriate package.json version indeed) if something is wrong (very big sorry: I did not want to mention this, but I have to). I.e. something like to 5.1 or 5.2 or x.y or ... If everything is implemented as templates, then it could be simple and very useful even for angular team IMHO.
All previous projects were generated with some default package.json so it should be simple to store such package.json (may be with package-lock.json) in the separate folder and use something like --template <folder-name>
to use them (i.e. from particular folder). And this should also allow other teams to create their own templates like angular6+redux, etc. What do you think?
And re-installation of angular CLI each time when I need project with other version sounds a bit time consuming. Having an option to use some particular template should save much time.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
Bug Report or Feature Request (mark with an
x
)Command (mark with an
x
)Versions
It's needed in each version but here are my current ones:
Repro steps
I found a suggestion to use --ng4 for angular4 here:
https://stackoverflow.com/questions/43344600/installing-a-specific-version-of-angular-with-angular-cli
So I tried the following:
but angular6 is used in any case:
The log given by the failure
No log is present
Desired functionality
The project with the specified angular version is created.
Mention any other details that might be useful
Usecases of this are very simple: