Aurelia Carlin
Aurelia Carlin

Reputation: 1

Install Angular with NPM I

If I do not have Angular installed on my machine, but pull down a repository that uses Angular and run npm i, should Angular be automatically installed?

I ran npm i, and then ng serve --open and ng was not recognized as a command until I separately installed the Angular CLI

Upvotes: 0

Views: 195

Answers (1)

Enrique Terrero
Enrique Terrero

Reputation: 54

if you run npm i without specifient any package you wont install anything

if you want to execute Ng serve you will need to install Angular core with the following command

npm i @angular/core

and then execute

npm install -g @angular/cli

in order to run ng serve -o

I Hope this work for you

Upvotes: 1

Related Questions