CentOS Stream 9

Angular 20 : インストール2026/04/21

 

Web アプリケーションフレームワーク Angular のインストールです。

[1]

こちらを参考に Node.js をインストールしておきます

[2] Angular 20 をインストールします。
[root@dlp ~]#
npm install -g @angular/cli@20

added 286 packages in 37s

68 packages are looking for funding
  run `npm fund` for details
[3] 任意の一般ユーザーで動作確認します。
[cent@dlp ~]$
ng version


     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/



Angular CLI: 20.3.24
Node: 24.13.0
Package Manager: npm 11.6.2
OS: linux x64


Angular: 

Package                      Version
------------------------------------
@angular-devkit/architect    0.2003.24 (cli-only)
@angular-devkit/core         20.3.24 (cli-only)
@angular-devkit/schematics   20.3.24 (cli-only)
@schematics/angular          20.3.24 (cli-only)

[cent@dlp ~]$
ng new hello-world


.....
.....

Packages installed successfully.

[cent@dlp ~]$
cd hello-world

[cent@dlp hello-world]$
ng serve --host dlp.srv.world --port 4200

Warning: This is a simple server for use in testing or debugging Angular applications
locally. It hasn't been reviewed for security issues.

Binding this server to an open connection can result in compromising your application or
computer. Using a different host than the one passed to the "--host" flag might result in
websocket connection issues. You might need to use "--disable-host-check" if that's the
case.
 Browser application bundle generation complete.

Initial Chunk Files   | Names         |  Raw Size
vendor.js             | vendor        |   2.02 MB |
polyfills.js          | polyfills     | 315.27 kB |
styles.css, styles.js | styles        | 207.35 kB |
main.js               | main          |  50.11 kB |
runtime.js            | runtime       |   6.52 kB |

| Initial Total |   2.58 MB

Build at: 2022-06-17T08:45:28.827Z - Hash: 5c3de286246946da - Time: 9551ms

** Angular Live Development Server is listening on dlp.srv.world:4200, open your browser on http://dlp.srv.world:4200/ **

 Compiled successfully.
[4] 任意のクライアントコンピューターで Web アクセスして、以下のようなページが表示されれば OK です。
関連コンテンツ