windows 10 安裝node.js


 

第一步:下載軟件
	nodejs的中文官網http://nodejs.cn/download/

 

選擇 windows  系統 msi 安裝版本。

下載完成之后,直接打開下一步安裝就可以。

安裝完成 打開cmd

 

 寫個測試程序

 

 hellp.js

var http = require('http');
http.createServer(function(request,response){
    response.writeHead(200,{'Content-type':'text/plain'})
    response.end("Hello World\n");
    }).listen(8888);
    console.log('Server running at http://127.0.0.1:8888');

 

 

 

OK! 安裝完成。還是挺簡單的。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM