node README

The project's README from github.com/nodejs/node. As one markdown file: README.md.

Node.js

Node.js is an open-source, cross-platform JavaScript runtime environment.

For information on using Node.js, see the [Node.js website][].

The Node.js project uses an open governance model. The [OpenJS Foundation][] provides support for the project.

Contributors are expected to act in a collaborative manner to move the project forward. We encourage the constructive exchange of contrary opinions and compromise. The TSC reserves the right to limit or block contributors who repeatedly act in ways that discourage, exhaust, or otherwise negatively affect other participants.

This project has a [Code of Conduct][].

Table of contents

Support

Looking for help? Check out the instructions for getting support.

Release types

Current and LTS releases follow semantic versioning. A member of the Release Team signs each Current and LTS release. For more information, see the Release README.

Download

Binaries, installers, and source tarballs are available at https://nodejs.org/en/download/.

Current and LTS releases

https://nodejs.org/download/release/

The latest directory is an alias for the latest Current release. The latest-codename directory is an alias for the latest release from an LTS line. For example, the latest-hydrogen directory contains the latest Hydrogen (Node.js 18) release.

Nightly releases

https://nodejs.org/download/nightly/

Each directory and filename includes the version (e.g., v22.0.0), followed by the UTC date (e.g., 20240424 for April 24, 2024), and the short commit SHA of the HEAD of the release (e.g., ddd0a9e494). For instance, a full directory name might look like v22.0.0-nightly20240424ddd0a9e494.

API documentation

Documentation for the latest Current release is at https://nodejs.org/api/. Version-specific documentation is available in each release directory in the docs subdirectory. Version-specific documentation is also at https://nodejs.org/download/docs/.

Verifying binaries

Download directories contain a SHASUMS256.txt.asc file with SHA checksums for the files and the releaser PGP signature.

You can get a trusted keyring from nodejs/release-keys, e.g. using curl:

curl -fsLo "/path/to/nodejs-keyring.kbx" "https://github.com/nodejs/release-keys/raw/HEAD/gpg/pubring.kbx"

Alternatively, you can import the releaser keys in your default keyring, see Release keys for commands on how to do that.

Then, you can verify the files you've downloaded locally (if you're using your default keyring, pass --keyring="${GNUPGHOME:-~/.gnupg}/pubring.kbx"):

curl -fsO "https://nodejs.org/dist/${VERSION}/SHASUMS256.txt.asc" \
&& gpgv --keyring="/path/to/nodejs-keyring.kbx" --output SHASUMS256.txt < SHASUMS256.txt.asc \
&& shasum --check SHASUMS256.txt --ignore-missing

Building Node.js

See BUILDING.md for instructions on how to build Node.js from source and a list of supported platforms.

Security

For information on reporting security vulnerabilities in Node.js, see SECURITY.md.

Contributing to Node.js

Current project team members

For information about the governance of the Node.js project, see GOVERNANCE.md.

TSC (Technical Steering Committee)

TSC voting members

TSC regular members

TSC emeriti members

TSC emeriti members

Collaborators

node (nodejs/node)

Searching Database…

122.4K ·GitHub
这是什么?Node.js 是一个开源、跨平台的 JavaScript 运行环境,让你可以在浏览器之外运行 JavaScript 代码,通常用于服务器和命令行工具。
它是框架还是 JS 引擎本身?它本身就是运行环境(以 V8 为基础构建),不是 Web 框架;Express 等框架运行在它之上。
我该怎样让 Node.js 运行起来?从 Node.js 官网下载适用于你操作系统的预编译二进制文件、安装程序或源码压缩包;你也可以自己从源码构建。
升级 Node 后我的代码会出问题吗?Node 每 6 个月(4 月和 10 月)发布一个新的主版本,Current 版本可能包含不兼容的变更;只有偶数主版本会成为 LTS,享有 12 个月的积极支持,加上 18 个月的维护期。
它可以在哪些操作系统上运行?Node.js 在 Linux、macOS 和 Windows 上构建并提供支持。
Current 版本和 LTS 版本有什么区别?Current 是最新主版本的活跃开发分支,可能包含不兼容的变更;LTS 版本则是偶数主版本,为长期稳定而设,先享有 12 个月的积极支持,之后再有 18 个月的仅维护更新。
如果想尝鲜,有每日构建版本吗?有,每日构建版本每 24 小时从 Current 分支编译一次(前提是有代码变更),但项目提醒使用时需谨慎。
What are similar projects?node-gyp, chokidar, deno, tsx, ts-node, ava, core-js, joi
Creator
nodejs
Size
1.6 GB
Stars
122.4K
Age
11y
Commits · 90 Days