配置环境

Angular网易云网页实战
https://github.com/lycHub/ng-wyy

因为疫情在家无聊到主动学习,前几天刚学完IT营大地老师讲的Angular基础,准备找个项目实战一下巩固基础,So……开个博客记录一下我踩过的坑吧~

今下午配置了环境,遇到的问题:
1、使用powershell窗口创建项目时,在指定文件夹下通过shift+右键打开powershell窗口。
ng new PROJECTNAME --style=less --routing -S
*这一步一定要安装正确,否则在vscode中安装ng-zorro-antd时会卡住不动或报错(安装失败)
2、ng new创建项目时报错/速度太慢,在命令中更改npm/cnpm源:
1) 命令
npm:npm config set registry https://registry.npm.taobao.org
cnpm:npm install -g cnpm --registry=https://registry.npm.taobao.org
2)验证命令
npm config get registry
如果返回https://registry.npm.taobao.org,说明镜像配置成功。
Angular实战学习记录

头部布局

Angular实战学习记录

底部布局

Angular实战学习记录

相关文章:

  • 2022-01-31
  • 2022-12-23
  • 2022-01-07
  • 2021-05-19
  • 2021-12-06
猜你喜欢
  • 2021-07-02
  • 2021-12-16
  • 2022-12-23
  • 2022-12-23
  • 2021-08-14
  • 2021-09-27
  • 2022-01-17
相关资源
相似解决方案