centos7 安裝nodejs

官網地址: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開發教程

http://stephenwalther.com/archive/2015/01/12/asp-net-5-and-angularjs-part-1-configuring-grunt-uglify-and-angularjs

.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?

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容