西西软件园多重安全检测下载网站、值得信赖的软件下载站!
西西首页 电脑软件 安卓软件 电脑游戏 安卓游戏 排行榜 专题合集

node.js

v18.14.1.0 官方正式版
  • node.jsv18.14.1.0 官方正式版
  • 软件大小:28M
  • 更新时间:2023-02-21 08:38
  • 软件语言:中文
  • 软件厂商:
  • 软件类别:国产软件 / 免费软件 / 编程控件
  • 软件等级:5级
  • 应用平台:WinAll, Win7
  • 官方网站:http://nodejs.org/download/
  • 应用备案:
好评:50%
坏评:50%

本类精品

软件介绍

Node.js 是构建于Chrome的JavaScript引擎的,Google的浏览器Chrome,有一个很是快速的JavaScript引擎,叫做V8。这个JS引擎可以被自力出来。Node.js就是建树在V8之上的。这也是为什么Node.js会运行的如此之快。对于开辟者来说,有几个益处:
你不须要从头进修一门新的说话,它就是JS。我经常查看Chrome和Mozilla的JS文档,他们完全通用。

Node.js 安装

1、安装编译环境,>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,可加入选项-without-ssl
>make
>make install
4、安装成功,默认路径为:/usr/local/bin/node!

Node.js 应用

1、安装成功后先写“Hello World!”简单测试一下,代码如下:
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、运行 app.js,>node app.js,在浏览器输入http://127.0.0.1:8000/,即可看到效果
3、Node提供了一些常用的API,可参考:http://nodejs.org/api.html

NPM 安装

除Node本身提供的API外,现在有不少第三方模块可极大的提高开发效率,如:WEB框架-express,HTTP中间件-connect,模板-ejs等,为了管理这些模块我们需要安装NPM,安装过程如下:
1、首先准备目录权限,不要以ROOT帐号安装,>sudo chown -R $USER /usr/local
  fedora下,先用root更改权限 chown -R $USER /usr/local 之后退出root
2、安装NPM,>curl http://npmjs.org/install.sh | sh
3、完成后安装第三方模块也很简单,>npm install modules_name,安装Express,>npm install express
注:如果安装模块的过程中报域名错误的话,请清空缓存 >npm cache clean 或重启计算机即可

值得关注的更新:

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

软件截图

node.js v18.14.1.0 官方正式版

最新评论查看所有(3)条评论 >

第 3 楼 CZ88.NET� 网友 客人 2021/4/20 17:55:26
可以使用npm命令了

支持(0) 盖楼(回复)

第 2 楼 香港特别行政 网友 客人 2015/4/13 22:49:17
送上一句感谢,安装成功可以用

支持(0) 盖楼(回复)

第 1 楼 湖北武汉电信 网友 客人 2013/11/22 21:03:36
Node 是一个服务器端 Java 解释器,它将改变服务器应该如何工作的概念。它的目标是帮助程序员构建高度可伸缩的应用程序,编写能够处理数万条同时连接到一个(只有一个)物理机的连接代码。”

支持(0) 盖楼(回复)

发表评论

昵称:
表情: 高兴 可 汗 我不要 害羞 好 下下下 送花 屎 亲亲
TOP
软件下载
Loading...