Proposal: detect the absence of the node_modules
folder while running ng build
or ng serve
#18393
Closed
2 tasks done
Labels
area: @angular/cli
freq1: low
Only reported by a handful of users who observe it rarely
severity2: inconvenient
type: bug/fix
Milestone
🚀 Feature request
Command
Description
Running
ng build
orng serve
in a folder withoutnode_modules
present results in the following error thrown in terminal: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 runnpm install
oryarn install
.The text was updated successfully, but these errors were encountered: