V
V
Vadim V2021-08-06 10:29:54
Angular
Vadim V, 2021-08-06 10:29:54

Is it possible to update only @angular/cli to the latest version in an old project?

There is a very old project using AngularJs and Angular 2, typescript 2.4.2, so you understand how old it is... There is no need to change versions of angular and typescript, but there is a task to add tslint, prettier and other bundle for formatting and code style checking .

So, the project has @angular/cli" installed: "1.7.3" old version, I want to understand if I can only update the cli, and what can it affect? ​​Since it is the cli that runs the linter, and tslint, prettier, codelyzer and so on I put the new version in. I understand of course that the Angular CLI is designed to initialize a new project, and serve it through ng [command], but I can’t really understand what the difference between the ng lint command of the old and new versions will be in In this case, does it make sense to raise the version of the Angular CLI and what can it affect?

​​Thanks for the help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shvets, 2021-08-06
@Xuxicheta

You can not use the cli from the project at all and use the global one for example. Not the fact that everything will be correct, but you can.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question