我的学习生活记录

这里是SUYE的站点

[angular] apache linux 端使用angular框架

2020-12-28 夙夜 实际技能

 启动项目访问,地址默认http://localhost:4200/:
ng serve --open
新建插件:
ng generate component xyz

前端打包:
ng build
编译前端时显示:
An unhandled exception occurred: Call retries were exceeded
See "/tmp/ng-jRu3iP/angular-errors.log" for further details.
可尝试升级nodejs到对应版本或者使用
node --max_old_space_size=8096 node_modules/@angular/cli/bin/ng build
来提高编译时的使用内存大小,实际使用内存大小可自行修改

前端配置文件:
/home/su/www/ng-lv/src/app/services/http.service.ts

标签: angular