Angular 14 : Install2023/03/10
Install Angular which is the Web application framework.
|||Install Angular 14.|
npm install -g @angular/cli@14
added 219 packages, and audited 220 packages in 18s 25 packages are looking for funding run `npm fund` for details found 0 vulnerabilities npm notice npm notice New minor version of npm available! 8.3.1 -> 8.12.2 npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.12.2 npm notice Run npm install -g email@example.com to update! npm notice
|||Try to run sample app as a common user.|
ng new hello-world
..... ..... Packages installed successfully.[alma@dlp ~]$
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.
|||Access to the URL you set from any client computer, and then that's OK if following site is shown.|