一.主要资料
http://blog.csdn.net/cz_jjq/article/details/50425206
http://www.tuicool.com/articles/mi6rmuB
二.环境搭建
1.安装NPM
sudo apt-get update
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install nodejs
sudo apt-get install npm
sudo update-alternatives --install /usr/bin/node nodejs /usr/bin/nodejs 100
npm -v
2.初始化NPM设置
npm init
3.安装angularjs2
npm install angular2 --save
4.安装坟typescript
npm install systemjs --save
npm install typescript --save-dev
注: --save放在package.json 的dependencies , --save-dev 放在devDependencies里面
tsc -v
5.安装lite-server
npm install lite-server --save-dev