Thursday, 27 December 2018

How to create an Angular project without installing npm packages using angular CLI ?

The -si flag as skips installing the npm packages.

The following command creates a new Angular project with name "AngularDemo" but it does not install the npm packages as we have used -si flag. 

ng new AngularDemo -si 

At this point if we try to generate a new component using the following ng generate command, it reports an error - node_modules appears empty, you may need to run 'npm install'

npm install

No comments:

Post a Comment