1. 安装cnpm:
npm install -g cnpm --registry=https://registry.npm.taobao.org
2. 安装angular/cli:
cnpm install -g @angular/cli
3. 创建一个示例程序
ng new my-app --skip-install
cd my-app
cnpm install
ng serve
时间: 2024-12-04 19:08:24
1. 安装cnpm:
npm install -g cnpm --registry=https://registry.npm.taobao.org
2. 安装angular/cli:
cnpm install -g @angular/cli
3. 创建一个示例程序
ng new my-app --skip-install
cd my-app
cnpm install
ng serve