Home  >  Article  >  Web Front-end  >  Online and offline installation in Angular CLI

Online and offline installation in Angular CLI

青灯夜游
青灯夜游forward
2021-05-25 10:23:093037browse

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

Online and offline installation in Angular CLI

Angular CLI installation method

Node.js and npm package manager are already installed by default. [Related tutorials recommended: "angular tutorial"]

1. Online installation

You can use external If the network is connected, 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 install it Copy the Angular CLI file to the intranet computer, that is, 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.

For more programming-related knowledge, please visit:

Programming Teaching! !

The above is the detailed content of Online and offline installation in 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