# ng-serve-antd-demo **Repository Path**: loyalty-code/ng-serve-antd-demo ## Basic Information - **Project Name**: ng-serve-antd-demo - **Description**: angular 17 practice - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-04-01 - **Last Updated**: 2025-12-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README <<<<<<< HEAD # ng-serve-antd-demo #### 介绍 {**以下是 Gitee 平台说明,您可以替换此简介** Gitee 是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 无论是个人、团队、或是企业,都能够用 Gitee 实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} #### 软件架构 软件架构说明 #### 安装教程 1. xxxx 2. xxxx 3. xxxx #### 使用说明 1. xxxx 2. xxxx 3. xxxx #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) ======= # NgServeAntdDemo This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.3.2. ## Development server Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files. ## Code scaffolding Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`. ## Build Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. ## Running unit tests Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). ## Running end-to-end tests Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities. ## Further help To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page. ## 该项目的node版本 ```shell node版本为20.0以上?! node v19.6.1 npm 9.4.0 不行! ``` ## nvm介绍、nvm下载、nvm安装、配置及nvm使用(Node Version Manager)nodejs版本管理切换工具 https://blog.csdn.net/qq_22182989/article/details/125387145 - 之前已经单独安装了node,先卸载(可以在控制面板里面卸载) - nvm -v - (如果是默认安装在c盘的。就可以跳过。如果是安装在其他盘的、则需要配置相应的环境变量) ```shell 如果安装nvm的文件夹里没有nodejs这个文件夹的话,可以自己手动新建一个空的nodejs文件夹即可。 NVM_HOME=安装目录\nvm NVM_SYMLINK=安装目录\nvm\nodejs ``` - 配置淘宝镜像 settings.txt ```shell 最后面追加2行代码即可: node_mirror: http://npmmirror.com/mirrors/node/ npm_mirror: http://registry.npmmirror.com/mirrors/npm/ ``` - 使用 ```shell nvm ls // 看安装的所有node.js的版本 nvm list available // 查显示可以安装的所有node.js的版本 nvm ls nvm list nvm use xxx ``` ## package.json 中配置node版本 ```json { "engines": { "node": "<=xxx" "npm": ">=xxx" }, "browsersList": [ "> 1%" "last 2 versions", "not ie <= 8" ] } ``` ## 项目启动 ```shell npm install -g @angular/cli $ ng new PROJECT_NAME $ cd PROJECT_NAME $ ng add ng-zorro-antd 开发调试: ng serve --port 0 --open 构建和部署: ng build --prod 安装组件: npm install ng-zorro-antd --save ```