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

A brief discussion on the two installation methods of Angular CLI

青灯夜游
Release: 2021-03-26 10:59:29
forward
2888 people have browsed it

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
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 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!

Related labels:
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