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

Online and offline installation in Angular CLI

青灯夜游
Release: 2021-05-25 10:23:09
forward
3094 people have browsed it

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
Copy after login

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!

source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template