Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upProposal: detect the absence of the `node_modules` folder while running `ng build` or `ng serve` #18393
Comments
|
Instead of showing a message, how if we automatically do |
|
Such errors seems to be mind-boggling when I was very new to Angular. |
|
Same with This is somehow related to #10474 |


Command
Description
Running
ng buildorng servein a folder withoutnode_modulespresent 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_modulesfolder is not present and output a user-friendly error message that would suggest to runnpm installoryarn install.