How to create New Angular App Without Global CLI Installation
Chellappan
Posted on January 12, 2024
Hello fellow developers! Today, I'm excited to share a quick and efficient way to create a new Angular application without the need to install Angular CLI globally on your machine. This approach is perfect for those who prefer to avoid global installations or are working with multiple versions of Angular. Let’s dive in!
The Magic Command:
npx @angular/cli@next new <app-name>
The command npx @angular/cli@next new <app-name>
is a one-liner that packs a punch.
Here’s a breakdown:
npx
: A package runner tool that comes with npm 5.2+.
@angular/cli@next
: This specifies the Angular CLI package. The @next tag fetches the latest pre-release version. If you prefer the stable version, just use @angular/cli.
new demo-app
: This part of the command tells Angular CLI to create a new project named demo-app.
Posted on January 12, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.