Kevin Powell - CommunityKP-C
Kevin Powell - Community3mo ago
10 replies
Ganesh

Using local install of angular cli

I don't really like to install the npm packages globally. The docs suggest using the global flag to install @angular/cli but I installed it locally thinking this is like all other docs that only do this for convenience.

Now the problem here is that to create a new angular project you need to use the npx ng new <directory-name> command.
but I can't specify the current directory where the angular cli is installed npx ng new ./ doesn't work but npx ng new practice-project does.

I took a look at the docs and didn't see a way.
https://angular.dev/cli/new
The web development framework for building modern apps.
Angular
Was this page helpful?