centos7 安裝nodejs

官網(wǎng)地址: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


返回如下結(jié)果:

3、安裝所需要的版本

nvminstallv7.3.0

4、查看已安裝版本

nvm list


5、切換版本

nvmusev.3.0

6、設(shè)置默認(rèn)版本

nvmaliasdefaultv7.3.0

查看Nvm版本

nvm --version

參考文獻(xiàn):http://blog.csdn.net/xuaa/article/details/52262586

設(shè)置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的替代者而出現(xiàn)的,如果你已經(jīng)安裝了TSD,那么需要知道現(xiàn)在TSD已經(jīng)不推薦使用了。如果已經(jīng)安裝TSD請執(zhí)行下面的命令來移除它:

npm rm -g tsd

3、安裝node的.d.ts庫

·輸入指令:typings install dt~node --global

4、安裝構(gòu)建工具

npm install gulp -g//構(gòu)建工具,非常重要

gulp和webpack可以混合使用,也可以獨(dú)立使用

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開發(fā)環(huán)境

http://www.cnblogs.com/sunjie9606/p/5945540.html

angular2 ,asp.net.core開發(fā)教程

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

.net core單點(diǎn)登錄

http://www.cnblogs.com/hantianwei/p/5699370.html

Angular2學(xué)習(xí)資料

https://segmentfault.com/a/1190000003761054

https://github.com/lewis617/angular2-tutorial

微信小程序開發(fā)教程:

http://www.runoob.com/w3cnote/wx-xcx-repo.html#id1

http://www.aspku.com/kaifa/net/200986.html

?z????b???m?

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容