Angular CLI借助

Amber CLI创建目录,

Webpack 测试打包。

使用 

1、安装Node

参考:前端构建工具gulp使用 

2、安装cnpm

npm install -g cnpm --registry

$ npm install -g cnpm --registry=https://registry.npm.taobao.org

https://developer.aliyun.com/mirror/NPM?from=tnpm

3、用cnpm安装Angular CLI

cnpm install -g @angular/cli

4、ng version

查看是否安装成功

 

问题:'ng' is not recognized as an internal or external command.

解决: PATH环境变量中新建:C:\Users\<UserName>\AppData\Roaming\npm

 

2018-03-04

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-24
  • 2021-05-08
  • 2021-09-30
  • 2021-08-31
  • 2021-07-07
  • 2021-07-08
  • 2022-02-09
相关资源
相似解决方案