add npm install error tips. (#970)

* add npm install error tips.

tell people use taobao's npm source.

* Update How-to-build-CN.md
This commit is contained in:
cyberdak 2018-03-20 20:52:18 +08:00 committed by 吴晟 Wu Sheng
parent b5de1a16a6
commit 8106c38594
1 changed files with 12 additions and 0 deletions

View File

@ -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源地址修改为淘宝的源在中国的访问速度可以大大提高.
```
<arguments>install --registry=https://registry.npmjs.org/</arguments>
```
修改为
```
<arguments>install --registry=https://registry.npm.taobao.org/</arguments>
```