From 4b30108734e1e4bdf71e2b770b438bdfc81756f0 Mon Sep 17 00:00:00 2001 From: Benjamin Liii Date: Fri, 14 Jun 2019 13:19:28 +0800 Subject: [PATCH] docs: add note to build Angular locally (#31053) I got the compiled failed error when I followed the tutorial, which should be informed in advance as there are people who might not know the dependency in the package.json if they have no former relevant experience. PR Close #31053 --- aio/content/start/deployment.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/aio/content/start/deployment.md b/aio/content/start/deployment.md index d83fa7d2e4..1a16b4eba6 100644 --- a/aio/content/start/deployment.md +++ b/aio/content/start/deployment.md @@ -50,6 +50,12 @@ ng build --prod This will produce the files that you need to deploy. +
+ +If the above `ng build` command throws an error about missing packages, append the missing dependencies in your local project's `package.json` file to match the one in the downloaded StackBlitz project. + +
+ #### Hosting the built project The files in the `dist/my-project-name` folder are static and can be hosted on any web server capable of serving files (`Node.js`, Java, .NET) or any backend (Firebase, Google Cloud, App Engine, others).