Ubuntu 24.04
Sponsored Link

Angular 16 : インストール2024/05/31

 

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

[1]

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

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

.....
.....

added 271 packages in 7s

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


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


Angular CLI: 16.2.14
Node: 18.19.1
Package Manager: npm 9.2.0
OS: linux x64

Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.1602.14 (cli-only)
@angular-devkit/core         16.2.14 (cli-only)
@angular-devkit/schematics   16.2.14 (cli-only)
@schematics/angular          16.2.14 (cli-only)

ubuntu@dlp:~$
ng new hello-world


.....
.....

Packages installed successfully.

ubuntu@dlp:~$
cd hello-world

ubuntu@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.35 MB |
polyfills.js          | polyfills     | 332.06 kB |
styles.css, styles.js | styles        | 229.35 kB |
main.js               | main          |  48.33 kB |
runtime.js            | runtime       |   6.52 kB |

| Initial Total |   2.95 MB

Build at: 2024-05-31T07:47:27.548Z - Hash: e2bf30771bb19be2 - Time: 9807ms

** 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 です。
関連コンテンツ