Home  >  Article  >  Web Front-end  >  A brief discussion on the two installation methods of Angular CLI

A brief discussion on the two installation methods of Angular CLI

青灯夜游
青灯夜游forward
2021-03-26 10:59:292566browse

This article will introduce to you the two installation methods of Angular CLI: online installation and offline installation. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.

A brief discussion on the two installation methods of Angular CLI

Related tutorial recommendations: "angular Tutorial"

Angular CLI installation method

Node.js and npm package manager are installed by default.

1. Online installation

If you can use the external network, you can use the online installation method.

To use the npm command globally install the CLI, please open a terminal/console window and enter the following command:

npm install -g @angular/cli

After successfully installing the Angular CLI globally, ## A folder named @angular appears in #C:\Users\zhang\AppData\Roaming\npm\node_modules\ directory .

2. Offline installation

If you want to install Angular CLI when you can only use the intranet, you need to copy the installed Angular CLI file to On the intranet computer, copy the @angular folder

under the C:\Users\zhang\AppData\Roaming\npm\node_modules directory to the corresponding directory of the intranet computer.

After successful installation, you can use Angular CLI to create projects, generate application and library code, and perform various continuous development tasks, such as testing, packaging, and deployment.

—— END ——

For more programming related knowledge, please visit:

Programming Video! !

The above is the detailed content of A brief discussion on the two installation methods of Angular CLI. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete