AngularJS8 - 环境搭建

准备

  1. ng --version (Node and Angular CLI version)
    Node: 10.16.0
    Angular CLI: 8.3.24
  2. node -v (NPM version)
    NPM: v10.16.0

搭建

  1. npm install -g cnpm --registry=https://registry.npm.taobao.org
  2. cnpm install -g @angular/cli
  3. ng new angularjs8-test --skip-install
  4. cd angularjs8-test
  5. cnpm install
    注意:cnpm安装过程中提示optional install error: Package require os(darwin) not compatible with your platform,执行下列步骤:
    ① cnpm rebuild node-sass
    ② cnpm install
  6. ng serve -o (启动)
    AngularJS8 - 环境搭建_第1张图片

你可能感兴趣的:(AngularJS8)