Hello,
As you know the Angular-CLI(Angular Command Line Interface) tool systematically accompanies the installation of the Angular framework on a machine. and with this tool we can interact and also use the Framework. suddenly it is possible to create a new Angular application and then check the version of Angular installed which is at the same time the version of Angular used in the application. and for that we can use Angular-CLI or use the NPM package manager.
To create a new project under Angular, just use the "ng new" command followed by the name of your application.
for example I am going to create an application that has the name Hello-world.
The Angular client will create a directory with the name hello-world and which contains your application and the Angular framework. so To check the angular version used by the application, can just use the command ng version. Care must be taken to be located in the directory of the application created at the start (hello-world). If you are in another directory, the command ng version will return the version of the framework installed for the project (if it is a directory linked to an Angular project) or the one installed globally on your system.to get the version you can just type the two commands:
cd hello-world
When a project running under node is created, the names and versions installed are kept in the file package.json located at the root of the project, so to find out the version of the framework installed in your project, you can use the nodeJs package manager, NPM.
0 comments:
Post a Comment