DEV Community


Posted on • Updated on

How to create New Angular App Without Global CLI Installation

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>
Enter fullscreen mode Exit fullscreen mode

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.

Top comments (0)