本地安装Angular2环境

1.官网先下载node.js并安装

2.clone快速新建Angular项目的仓库到本地len-app

git clone https://github.com/angular/quickstart.git lenapp

3.install并start

1 cd len-app
2 npm install
3 npm start

这个工程是实时编译的,所以会在每个module目录下产生许多编译后的js/map文件。可以使用apache来代替 npm run build 。具体稍后详解!

猜你喜欢

转载自www.cnblogs.com/Failbs/p/8910275.html