Angular 21 : インストール2026/01/29 |
|
Web アプリケーションフレームワーク Angular のインストールです。 |
|
| [1] | |
| [2] | Angular 21 をインストールします。 |
|
root@dlp:~ #
root@dlp:~ # pkg install -y git npm install -g @angular/cli@21 npm warn Unknown global config "python". This will stop working in the next major version of npm. added 298 packages in 43s 69 packages are looking for funding run `npm fund` for details npm notice npm notice New minor version of npm available! 11.7.0 -> 11.8.0 npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.8.0 npm notice To update run: npm install -g npm@11.8.0 npm notice |
| [3] | 任意の一般ユーザーで動作確認します。 |
|
freebsd@dlp:~ $ ng version
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI : 21.1.2
Node.js : 24.12.0
Package Manager : npm 11.7.0
Operating System : freebsd x64
freebsd@dlp:~ $ ng new hello-world ..... ..... CREATE hello-world/src/app/app.config.server.ts (426 bytes) CREATE hello-world/src/app/app.routes.server.ts (166 bytes) CREATE hello-world/public/favicon.ico (15086 bytes) ✓ Packages installed successfully.freebsd@dlp:~ $ cd hello-world freebsd@dlp:~/hello-world $ ng serve --host dlp.srv.world --port 4200
Would you like to share pseudonymous usage data about this project with the Angular Team
at Google under Google's Privacy Policy at https://policies.google.com/privacy. For more
details and how to change this setting, see https://angular.dev/cli/analytics.
Yes
Thank you for sharing pseudonymous usage data. Should you change your mind, the following
command will disable this feature entirely:
ng analytics disable
Global setting: enabled
Local setting: enabled
Effective status: enabled
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.
Browser bundles
Initial chunk files | Names | Raw size
main.js | main | 47.74 kB |
styles.css | styles | 95 bytes |
| Initial total | 47.84 kB
Server bundles
Initial chunk files | Names | Raw size
main.server.mjs | main.server | 49.01 kB |
server.mjs | server | 1.81 kB |
polyfills.server.mjs | polyfills.server | 243 bytes |
Application bundle generation complete. [2.224 seconds] - 2026-01-29T00:05:47.272Z
[WARNING] Unable to initialize JavaScript cache storage. [plugin angular-compiler]
No native build was found for platform=freebsd arch=x64 runtime=node abi=137 uv=1 libc=glibc node=24.12.0
This will not affect the build output content but may result in slower builds.
[WARNING] Unable to initialize JavaScript cache storage. [plugin angular-compiler]
No native build was found for platform=freebsd arch=x64 runtime=node abi=137 uv=1 libc=glibc node=24.12.0
This will not affect the build output content but may result in slower builds.
[WARNING] Unable to initialize JavaScript cache storage. [plugin angular-compiler]
No native build was found for platform=freebsd arch=x64 runtime=node abi=137 uv=1 libc=glibc node=24.12.0
This will not affect the build output content but may result in slower builds.
Watch mode enabled. Watching for file changes...
NOTE: Raw file sizes do not reflect development server per-request transformations.
→ Network: http://dlp.srv.world:4200/
→ press h + enter to show help
|
| [4] | 任意のクライアントコンピューターで Web アクセスして、以下のようなページが表示されれば OK です。 |
|
| Sponsored Link |