首页 > 代码库 > Angular 权威指南 环境搭建

Angular 权威指南 环境搭建


不用书上那个 angular-cli 版本,太特殊了
然后用cnpm安装

cnpm install -g angular-cli
angular-cli@1.0.0-beta.28.3



C:\windows\system32>ng -v
As a forewarning, we are moving the CLI npm package to "@angular/cli" with the next release,
which will only support Node 6.9 and greater. This package will be officially deprecated
shortly after.

To disable this warning use "ng set --global warnings.packageDeprecation=false".


                             _                           _  _
  __ _  _ __    __ _  _   _ | |  __ _  _ __         ___ | |(_)
 / _` || ‘_ \  / _` || | | || | / _` || ‘__|_____  / __|| || |
| (_| || | | || (_| || |_| || || (_| || |  |_____|| (__ | || |
 \__,_||_| |_| \__, | \__,_||_| \__,_||_|          \___||_||_|
               |___/
angular-cli: 1.0.0-beta.28.3
node: 6.10.3
os: win32 x64





"environments": {
"source": "environments/environment.ts",
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
}


然后按照报错信息
  


null


Angular 权威指南 环境搭建