From 8106c3859494d2add4a849dd053c95de888f150e Mon Sep 17 00:00:00 2001 From: cyberdak Date: Tue, 20 Mar 2018 20:52:18 +0800 Subject: [PATCH] add npm install error tips. (#970) * add npm install error tips. tell people use taobao's npm source. * Update How-to-build-CN.md --- docs/cn/How-to-build-CN.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/cn/How-to-build-CN.md b/docs/cn/How-to-build-CN.md index 223e0bc4cd..ed0a1d7e0a 100644 --- a/docs/cn/How-to-build-CN.md +++ b/docs/cn/How-to-build-CN.md @@ -37,3 +37,15 @@ * resin-3.0.9.jar * resin-4.0.41.jar * ojdbc14-10.2.0.4.0.jar + +## FAQ +### npm install超时失败 +如果在编译apm-webapp时碰到下载包失败问题,可以将apm-webapp中pom.xml中npm源地址修改为淘宝的源,在中国的访问速度可以大大提高. + +``` +install --registry=https://registry.npmjs.org/ +``` +修改为 +``` +install --registry=https://registry.npm.taobao.org/ +``` -- GitLab