-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Labels
area: @angular/clifreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity2: inconvenienttype: bug/fix
Milestone
Description
🚀 Feature request
Command
- build
- serve
Description
Running ng build
or ng serve
in a folder without node_modules
present results in the following error thrown in terminal:
$ ng serve
An unhandled exception occurred: Cannot find module '@angular-devkit/build-angular/package.json'
Require stack:
... stacktrace ...
See "/private/var/folders/7d/r6b3nrdj7bn9t_w_dclm6y9r00kg80/T/ng-PRpMHw/angular-errors.log" for further details.
This can happen for example after downloading an example app from angular.io website. Example link:
https://angular.io/generated/zips/form-validation/form-validation.zip
Describe the solution you'd like
The proposal is to handle the case when node_modules
folder is not present and output a user-friendly error message that would suggest to run npm install
or yarn install
.
9034725985, sahilpurav and Lehoczky9034725985
Metadata
Metadata
Assignees
Labels
area: @angular/clifreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity2: inconvenienttype: bug/fix