官網地址:https://github.com/creationix/nvm/blob/master/README.markdown
1、安裝:
curl -o-https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh|bash
source ~/.bash_profile
2、列出所有版本
nvmlist-remote
返回如下結果:
3、安裝所需要的版本
nvminstallv7.3.0
4、查看已安裝版本
nvm list
5、切換版本
nvmusev.3.0
6、設置默認版本
nvmaliasdefaultv7.3.0
查看Nvm版本
nvm --version
參考文獻:http://blog.csdn.net/xuaa/article/details/52262586
設置node.js淘寶鏡像,國外太慢
npm config set registry "
https://registry.npm.taobao.org "
替換回官方的下載源:
npm config set registry https://registry.npmjs.org/
1、安裝typescript
npm install -g typescript
查看版本:
tsc –v
更新TypeScript
Compiler
·輸入指令:npm update -g typescript
·查看版本:tsc -v
2、安裝typings
npminstall-g typings
安裝完成后,在命令行中輸入:
typings--version
看到版本信息就表示typings工具安裝完成了:
Typings VS TSD
Typings是作為TSD的替代者而出現的,如果你已經安裝了TSD,那么需要知道現在TSD已經不推薦使用了。如果已經安裝TSD請執行下面的命令來移除它:
npm rm -g tsd
3、安裝node的.d.ts庫
·輸入指令:typings install dt~node --global
4、安裝構建工具
npm install gulp -g//構建工具,非常重要
gulp和webpack可以混合使用,也可以獨立使用
npm install gulp-webpack –g
參考資料:https://www.npmjs.com/package/gulp-webpack
vargulp=require('gulp');
varwebpack=require('gulp-webpack');
gulp.task('default',function()?{
returngulp.src('src/entry.js')
.pipe(webpack())
.pipe(gulp.dest('dist/'));
});
另安裝git命令:
Yum install git
使用Visual Studio Code搭建TypeScript開發環境
http://www.cnblogs.com/sunjie9606/p/5945540.html
angular2 ,asp.net.core開發教程
.net core單點登錄
http://www.cnblogs.com/hantianwei/p/5699370.html
Angular2學習資料
https://segmentfault.com/a/1190000003761054
https://github.com/lewis617/angular2-tutorial
微信小程序開發教程:
http://www.runoob.com/w3cnote/wx-xcx-repo.html#id1
http://www.aspku.com/kaifa/net/200986.html
?z????b???m?