西西軟件園多重安全檢測(cè)下載網(wǎng)站、值得信賴(lài)的軟件下載站!
西西首頁(yè) 電腦軟件 安卓軟件 電腦游戲 安卓游戲 排行榜 專(zhuān)題合集

node.js

v18.14.1.0 官方正式版
  • node.jsv18.14.1.0 官方正式版
  • 軟件大小:28M
  • 更新時(shí)間:2023-02-21 08:38
  • 軟件語(yǔ)言:中文
  • 軟件廠(chǎng)商:
  • 軟件類(lèi)別:國(guó)產(chǎn)軟件 / 免費(fèi)軟件 / 編程控件
  • 軟件等級(jí):5級(jí)
  • 應(yīng)用平臺(tái):WinAll, Win7
  • 官方網(wǎng)站:http://nodejs.org/download/
  • 應(yīng)用備案:
好評(píng):50%
壞評(píng):50%

本類(lèi)精品

軟件介紹

Node.js 是構(gòu)建于Chrome的JavaScript引擎的,Google的瀏覽器Chrome,有一個(gè)很是快速的JavaScript引擎,叫做V8。這個(gè)JS引擎可以被自力出來(lái)。Node.js就是建樹(shù)在V8之上的。這也是為什么Node.js會(huì)運(yùn)行的如此之快。對(duì)于開(kāi)辟者來(lái)說(shuō),有幾個(gè)益處:
你不須要從頭進(jìn)修一門(mén)新的說(shuō)話(huà),它就是JS。我經(jīng)常查看Chrome和Mozilla的JS文檔,他們完全通用。

Node.js 安裝

1、安裝編譯環(huán)境,>sudo apt-get install g++ c++ curl libssl-dev apache2-utils git-core curl
2、下載Node安裝包,>wget http://nodejs.org/dist/node-v0.3.0.tar.gz
3、編譯安裝,步驟如下:
>./configure        //注:如果不需SSL,可加入選項(xiàng)-without-ssl
>make
>make install
4、安裝成功,默認(rèn)路徑為:/usr/local/bin/node!

Node.js 應(yīng)用

1、安裝成功后先寫(xiě)“Hello World!”簡(jiǎn)單測(cè)試一下,代碼如下:
Java代碼  
view plaincopy to clipboardprint?  
//filename: app.js    
var http = require('http');    
http.createServer(function (req, res) {    
 res.writeHead(200, {'Content-Type': 'text/plain'});    
 res.end('Hello World\n');    
}).listen(8000, "127.0.0.1");    
console.log('Server running at http://127.0.0.1:8000/');
2、運(yùn)行 app.js,>node app.js,在瀏覽器輸入http://127.0.0.1:8000/,即可看到效果
3、Node提供了一些常用的API,可參考:http://nodejs.org/api.html

NPM 安裝

除Node本身提供的API外,現(xiàn)在有不少第三方模塊可極大的提高開(kāi)發(fā)效率,如:WEB框架-express,HTTP中間件-connect,模板-ejs等,為了管理這些模塊我們需要安裝NPM,安裝過(guò)程如下:
1、首先準(zhǔn)備目錄權(quán)限,不要以ROOT帳號(hào)安裝,>sudo chown -R $USER /usr/local
  fedora下,先用root更改權(quán)限 chown -R $USER /usr/local 之后退出root
2、安裝NPM,>curl http://npmjs.org/install.sh | sh
3、完成后安裝第三方模塊也很簡(jiǎn)單,>npm install modules_name,安裝Express,>npm install express
注:如果安裝模塊的過(guò)程中報(bào)域名錯(cuò)誤的話(huà),請(qǐng)清空緩存 >npm cache clean 或重啟計(jì)算機(jī)即可

值得關(guān)注的更新:

Build

FreeBSD 10 is no longer supported. #22617

child_process

The default value of the windowsHide option has been changed to true. #21316

console

console.countReset() will emit a warning if the timer being reset does not exist. #21649

console.time() will no longer reset a timer if it already exists. #20442

Dependencies

V8 has been updated to 7.0. #22754

fs

The fs.read() method now requires a callback. #22146

The previously deprecated fs.SyncWriteStream utility has been removed.#20735

http

The http, https, and tls modules now use the WHATWG URL parser by default. #20270

General

Use of process.binding() has been deprecated. Userland code using process.binding() should re-evaluate that use and begin migrating. If there are no supported API alternatives, please open an issue in the Node.js GitHub repository so that a suitable alternative may be discussed.

An experimental implementation of queueMicrotask() has been added. #22951

Internal

Windows performance-counter support has been removed. #22485

The --expose-http2 command-line option has been removed. #20887

Timers

Interval timers will be rescheduled even if previous interval threw an error. #20002

nextTick queue will be run after each immediate and timer. #22842

util

The WHATWG TextEncoder and TextDecoder are now globals. #22281

util.inspect() output size is limited to 128 MB by default. #22756

A runtime warning will be emitted when NODE_DEBUG is set for either http or http2. #21914

node.js其他版本下載大全

Windows Installer (.msi)32-bit64-bit
Windows Binary (.zip)32-bit64-bit
macOS Installer (.pkg)64-bit

macOS Binaries (.tar.gz)64-bit

Linux Binaries (x86/x64)32-bit64-bit
Linux Binaries (ARM)ARMv6ARMv7ARMv8
Source Codenode-v6.11.5.tar.gz

其他版本下載

最新評(píng)論查看所有(3)條評(píng)論 >

第 3 樓 CZ88.NET� 網(wǎng)友 客人 2021/4/20 17:55:26
可以使用npm命令了

支持( 0 ) 蓋樓(回復(fù))

第 2 樓 香港特別行政 網(wǎng)友 客人 2015/4/13 22:49:17
送上一句感谢,安装成功可以用

支持( 0 ) 蓋樓(回復(fù))

第 1 樓 湖北武漢電信 網(wǎng)友 客人 2013/11/22 21:03:36
Node 是一個(gè)服務(wù)器端 Java 解釋器,它將改變服務(wù)器應(yīng)該如何工作的概念。它的目標(biāo)是幫助程序員構(gòu)建高度可伸縮的應(yīng)用程序,編寫(xiě)能夠處理數(shù)萬(wàn)條同時(shí)連接到一個(gè)(只有一個(gè))物理機(jī)的連接代碼�!�

支持( 0 ) 蓋樓(回復(fù))

發(fā)表評(píng)論

昵稱(chēng):
表情: 高興 可 汗 我不要 害羞 好 下下下 送花 屎 親親
查看所有(3)條評(píng)論 > 字?jǐn)?shù): 0/500

TOP
軟件下載