码迷,mamicode.com
首页 > 其他好文 > 详细

Angular 权威指南 环境搭建

时间:2017-05-17 16:05:10      阅读:213      评论:0      收藏:0      [点我收藏+]

标签:--   which   ext   cnp   ref   warnings   global   his   app   


不用书上那个 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"
}


然后按照报错信息
  




Angular 权威指南 环境搭建

标签:--   which   ext   cnp   ref   warnings   global   his   app   

原文地址:http://www.cnblogs.com/xiaoCong2016/p/6867787.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!