node
开发工具 活跃维护

node

nodejs/node

内置V8引擎与事件循环,提供非阻塞I/O、npm生态和跨平台二进制分发,用同一套JavaScript代码编写命令行工具、Web服务与实时应用,启动快、依赖少、调试顺畅。

123,530
Stars 标星
38,053
Forks 分支
123,530
Watchers 关注
1336
Open Issues
JavaScript
主要语言
NOASSERTION
开源协议
1656 MB
仓库大小
22 天前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:nodejs/node
git clone https://github.com/nodejs/node.git
git clone git@github.com:nodejs/node.git
README.md main

🔥 本项收录自 GitHub 日榜 · 全球 第 8 名(133 stars today),榜单来源:rebang.today

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

Node.js follows semantic versioning.

  • Alpha: Under active development where semver-major changes are allowed.
    Each October, a new release line (for example, Node.js 27) branches off main
    and receives Alpha releases (for example, 27.0.0-alpha.0.0.0) for 6 months,
    then are promoted to Current (see below) each April. Alpha releases are signed,
    tagged, and tested through CITGM, but their
    API and ABI may change between releases. They are intended for library authors
    and CI pipelines, not for production use.
  • Current: Under active development, no semver-major changes allowed. Node.js
    releases a new major version once a year, in April. Releases stay Current for
    6 months, then convert to LTS (see below) each October. Their ABI may change
    between releases. They are intended for library authors and CI pipelines, not
    for production use.
  • LTS: Releases under Long Term Support, with a focus on stability
    and security. Only changes that have been on Alpha or Current release for two
    weeks can be backported to a typical LTS release. Every major version becomes an LTS
    release, and receives 30 months of LTS support, for a total of 36 months from
    its first Current release to End-of-Life. LTS release lines have alphabetically-ordered
    code names, beginning with Node.js 4 Argon.
  • Nightly: Code from the main branch built every 24-hours when there are
    changes. Unlike Alpha releases, nightly builds are automated and untested.
    Use with caution.

Release lines up to and including Node.js 26 follow the previous schedule, where a
new major version was released every 6 months and only even-numbered major
versions became LTS. See the
Node.js release schedule announcement
for details.

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 * [addaleax](https://github.com/addaleax) - **Anna Henningsen** <> (she/her) * [apapirovski](https://github.com/apapirovski) - **Anatoli Papirovski** <> (he/him) * [ChALkeR](https://github.com/ChALkeR) - **Сковорода Никита Андреевич** <> (he/him) * [chrisdickinson](https://github.com/chrisdickinson) - **Chris Dickinson** <> * [danbev](https://github.com/danbev) - **Daniel Bevenius** <> (he/him) * [danielleadams](https://github.com/danielleadams) - **Danielle Adams** <> (she/her) * [evanlucas](https://github.com/evanlucas) - **Evan Lucas** <> (he/him) * [fhinkel](https://github.com/fhinkel) - **Franziska Hinkelmann** <> (she/her) * [Fishrock123](https://github.com/Fishrock123) - **Jeremiah Senkpiel** <> (he/they) * [gabrielschulhof](https://github.com/gabrielschulhof) - **Gabriel Schulhof** <> * [gibfahn](https://github.com/gibfahn) - **Gibson Fahnestock** <> (he/him) * [indutny](https://github.com/indutny) - **Fedor Indutny** <> * [isaacs](https://github.com/isaacs) - **Isaac Z. Schlueter** <> * [joshgav](https://github.com/joshgav) - **Josh Gavant** <> * [mhdawson](https://github.com/mhdawson) - **Michael Dawson** <> (he/him) * [mmarchini](https://github.com/mmarchini) - **Mary Marchini** <> (she/her) * [mscdex](https://github.com/mscdex) - **Brian White** <> * [MylesBorins](https://github.com/MylesBorins) - **Myles Borins** <> (he/him) * [nebrius](https://github.com/nebrius) - **Bryan Hughes** <> * [ofrobots](https://github.com/ofrobots) - **Ali Ijaz Sheikh** <> (he/him) * [orangemocha](https://github.com/orangemocha) - **Alexis Campailla** <> * [piscisaureus](https://github.com/piscisaureus) - **Bert Belder** <> * [rvagg](https://github.com/rvagg) - **Rod Vagg** <> * [sam-github](https://github.com/sam-github) - **Sam Roberts** <> * [shigeki](https://github.com/shigeki) - **Shigeki Ohtsu** <> (he/him) * [targos](https://github.com/targos) - **Michaël Zasso** <> (he/him) * [thefourtheye](https://github.com/thefourtheye) - **Sakthipriyan Vairamani** <> (he/him) * [TimothyGu](https://github.com/TimothyGu) - **Tiancheng "Timothy" Gu** <> (he/him) * [trevnorris](https://github.com/trevnorris) - **Trevor Norris** <>

Collaborators

Emeriti ### Collaborator emeriti * [ak239](https://github.com/ak239) - **Aleksei Koziatinskii** <> * [andrasq](https://github.com/andrasq) - **Andras** <> * [AndreasMadsen](https://github.com/AndreasMadsen) - **Andreas Madsen** <> (he/him) * [AnnaMag](https://github.com/AnnaMag) - **Anna M. Kedzierska** <> * [antsmartian](https://github.com/antsmartian) - **Anto Aravinth** <> (he/him) * [apapirovski](https://github.com/apapirovski) - **Anatoli Papirovski** <> (he/him) * [aqrln](https://github.com/aqrln) - **Alexey Orlenko** <> (he/him) * [AshCripps](https://github.com/AshCripps) - **Ash Cripps** <> * [bcoe](https://github.com/bcoe) - **Ben Coe** <> (he/him) * [bmeck](https://github.com/bmeck) - **Bradley Farias** <> * [bmeurer](https://github.com/bmeurer) - **Benedikt Meurer** <> * [boneskull](https://github.com/boneskull) - **Christopher Hiller** <> (he/him) * [brendanashworth](https://github.com/brendanashworth) - **Brendan Ashworth** <> * [bzoz](https://github.com/bzoz) - **Bartosz Sosnowski** <> * [calvinmetcalf](https://github.com/calvinmetcalf) - **Calvin Metcalf** <> * [chrisdickinson](https://github.com/chrisdickinson) - **Chris Dickinson** <> * [claudiorodriguez](https://github.com/claudiorodriguez) - **Claudio Rodriguez** <> * [danbev](https://github.com/danbev) - **Daniel Bevenius** <> (he/him) * [danielleadams](https://github.com/danielleadams) - **Danielle Adams** <> (she/her) * [DavidCai1111](https://github.com/DavidCai1111) - **David Cai** <> (he/him) * [davisjam](https://github.com/davisjam) - **Jamie Davis** <> (he/him) * [debadree25](https://github.com/debadree25) - **Debadree Chatterjee** <> (he/him) * [devnexen](https://github.com/devnexen) - **David Carlier** <> * [devsnek](https://github.com/devsnek) - **Gus Caplan** <> (they/them) * [digitalinfinity](https://github.com/digitalinfinity) - **Hitesh Kanwathirtha** <> (he/him) * [dmabupt](https://github.com/dmabupt) - **Xu Meng** <> (he/him) * [dnlup](https://github.com/dnlup) - **dnlup** <> * [edsadr](https://github.com/edsadr) - **Adrian Estrada** <> (he/him) * [eljefedelrodeodeljefe](https://github.com/eljefedelrodeodeljefe) - **Robert Jefe Lindstaedt** <> * [estliberitas](https://github.com/estliberitas) - **Alexander Makarenko** <> * [eugeneo](https://github.com/eugeneo) - **Eugene Ostroukhov** <> * [evanlucas](https://github.com/evanlucas) - **Evan Lucas** <> (he/him) * [F3n67u](https://github.com/F3n67u) - **Feng Yu** <> (he/him) * [fhinkel](https://github.com/fhinkel) - **Franziska Hinkelmann** <> (she/her) * [firedfox](https://github.com/firedfox) - **Daniel Wang** <> * [Fishrock123](https://github.com/Fishrock123) - **Jeremiah Senkpiel** <> (he/they) * [gdams](https://github.com/gdams) - **George Adams** <> (he/him) * [geek](https://github.com/geek) - **Wyatt Preul** <> * [gibfahn](https://github.com/gibfahn) - **Gibson Fahnestock** <> (he/him) * [glentiki](https://github.com/glentiki) - **Glen Keane** <> (he/him) * [hashseed](https://github.com/hashseed) - **Yang Guo** <> (he/him) * [hiroppy](https://github.com/hiroppy) - **Yuta Hiroto** <> (he/him) * [iansu](https://github.com/iansu) - **Ian Sutherland** <> * [iarna](https://github.com/iarna) - **Rebecca Turner** <> * [imran-iq](https://github.com/imran-iq) - **Imran Iqbal** <> * [imyller](https://github.com/imyller) - **Ilkka Myller** <> * [indutny](https://github.com/indutny) - **Fedor Indutny** <> * [isaacs](https://github.com/isaacs) - **Isaac Z. Schlueter** <> * [italoacasas](https://github.com/italoacasas) - **Italo A. Casas** <> (he/him) * [JacksonTian](https://github.com/JacksonTian) - **Jackson Tian** <> * [jasongin](https://github.com/jasongin) - **Jason Ginchereau** <> * [jbergstroem](https://github.com/jbergstroem) - **Johan Bergström** <> * [jdalton](https://github.com/jdalton) - **John-David Dalton** <> * [jhamhader](https://github.com/jhamhader) - **Yuval Brik** <> * [joaocgreis](https://github.com/joaocgreis) - **João Reis** <> * [joesepi](https://github.com/joesepi) - **Joe Sepi** <> (he/him) * [JonasBa](https://github.com/JonasBa) - **Jonas Badalic** <> (he/him) * [joshgav](https://github.com/joshgav) - **Josh Gavant** <> * [julianduque](https://github.com/julianduque) - **Julian Duque** <> (he/him) * [kfarnung](https://github.com/kfarnung) - **Kyle Farnung** <> (he/him) * [kunalspathak](https://github.com/kunalspathak) - **Kunal Pathak** <> * [kuriyosh](https://github.com/kuriyosh) - **Yoshiki Kurihara** <> (he/him) * [kvakil](https://github.com/kvakil) - **Keyhan Vakil** <> * [lance](https://github.com/lance) - **Lance Ball** <> (he/him) * [Leko](https://github.com/Leko) - **Shingo Inoue** <> (he/him) * [Linkgoron](https://github.com/Linkgoron) - **Nitzan Uziely** <> * [lucamaraschi](https://github.com/lucamaraschi) - **Luca Maraschi** <> (he/him) * [lukekarrys](https://github.com/lukekarrys) - **Luke Karrys** <> (he/him) * [lundibundi](https://github.com/lundibundi) - **Denys Otrishko** <> (he/him) * [lxe](https://github.com/lxe) - **Aleksey Smolenchuk** <> * [maclover7](https://github.com/maclover7) - **Jon Moss** <> (he/him) * [mafintosh](https://github.com/mafintosh) - **Mathias Buus** <> (he/him) * [matthewloring](https://github.com/matthewloring) - **Matthew Loring** <> * [Mesteery](https://github.com/Mesteery) - **Mestery** <> (he/him) * [mhdawson](https://github.com/mhdawson) - **Michael Dawson** <> (he/him) * [micnic](https://github.com/micnic) - **Nicu Micleușanu** <> (he/him) * [mikeal](https://github.com/mikeal) - **Mikeal Rogers** <> * [miladfarca](https://github.com/miladfarca) - **Milad Fa** <> (he/him) * [mildsunrise](https://github.com/mildsunrise) - **Alba Mendez** <> (she/her) * [misterdjules](https://github.com/misterdjules) - **Julien Gilli** <> * [mmarchini](https://github.com/mmarchini) - **Mary Marchini** <> (she/her) * [monsanto](https://github.com/monsanto) - **Christopher Monsanto** <> * [MoonBall](https://github.com/MoonBall) - **Chen Gang** <> * [mscdex](https://github.com/mscdex) - **Brian White** <> * [MylesBorins](https://github.com/MylesBorins) - **Myles Borins** <> (he/him) * [not-an-aardvark](https://github.com/not-an-aardvark) - **Teddy Katz** <> (he/him) * [ofrobots](https://github.com/ofrobots) - **Ali Ijaz Sheikh** <> (he/him) * [Olegas](https://github.com/Olegas) - **Oleg Elifantiev** <> * [orangemocha](https://github.com/orangemocha) - **Alexis Campailla** <> * [othiym23](https://github.com/othiym23) - **Forrest L Norvell** <> (they/them/themself) * [oyyd](https://github.com/oyyd) - **Ouyang Yadong** <> (he/him) * [petkaantonov](https://github.com/petkaantonov) - **Petka Antonov** <> * [phillipj](https://github.com/phillipj) - **Phillip Johnsen** <> * [piscisaureus](https://github.com/piscisaureus) - **Bert Belder** <> * [pmq20](https://github.com/pmq20) - **Minqi Pan** <> * [PoojaDurgad](https://github.com/PoojaDurgad) - **Pooja D P** <> (she/her) * [princejwesley](https://github.com/princejwesley) - **Prince John Wesley** <> * [psmarshall](https://github.com/psmarshall) - **Peter Marshall** <> (he/him) * [puskin](https://github.com/puskin) - **Giovanni Bucci** <> (he/him) * [puzpuzpuz](https://github.com/puzpuzpuz) - **Andrey Pechkurov** <> (he/him) * [refack](https://github.com/refack) - **Refael Ackermann (רפאל פלחי)** <> (he/him/הוא/אתה) * [rexagod](https://github.com/rexagod) - **Pranshu Srivastava** <> (he/him) * [rickyes](https://github.com/rickyes) - **Ricky Zhou** <<0x19951125@gmail.com>> (he/him) * [rlidwka](https://github.com/rlidwka) - **Alex Kocharin** <> * [rmg](https://github.com/rmg) - **Ryan Graham** <> * [robertkowalski](https://github.com/robertkowalski) - **Robert Kowalski** <> * [romankl](https://github.com/romankl) - **Roman Klauke** <> * [ronkorving](https://github.com/ronkorving) - **Ron Korving** <> * [RReverser](https://github.com/RReverser) - **Ingvar Stepanyan** <> * [rubys](https://github.com/rubys) - **Sam Ruby** <> * [rvagg](https://github.com/rvagg) - **Rod Vagg** <> * [ryzokuken](https://github.com/ryzokuken) - **Ujjwal Sharma** <> (he/him) * [saghul](https://github.com/saghul) - **Saúl Ibarra Corretgé** <> * [sam-github](https://github.com/sam-github) - **Sam Roberts** <> * [sebdeckers](https://github.com/sebdeckers) - **Sebastiaan Deckers** <> * [seishun](https://github.com/seishun) - **Nikolai Vavilov** <> * [shigeki](https://github.com/shigeki) - **Shigeki Ohtsu** <> (he/him) * [shisama](https://github.com/shisama) - **Masashi Hirano** <> (he/him) * [silverwind](https://github.com/silverwind) - **Roman Reiss** <> * [starkwang](https://github.com/starkwang) - **Weijia Wang** <> * [stefanmb](https://github.com/stefanmb) - **Stefan Budeanu** <> * [targos](https://github.com/targos) - **Michaël Zasso** <> (he/him) * [tellnes](https://github.com/tellnes) - **Christian Tellnes** <> * [thefourtheye](https://github.com/thefourtheye) - **Sakthipriyan Vairamani** <> (he/him) * [thlorenz](https://github.com/thlorenz) - **Thorsten Lorenz** <> * [TimothyGu](https://github.com/TimothyGu) - **Tiancheng "Timothy" Gu** <> (he/him) * [trevnorris](https://github.com/trevnorris) - **Trevor Norris** <> * [tunniclm](https://github.com/tunniclm) - **Mike Tunnicliffe** <> * [vdeturckheim](https://github.com/vdeturckheim) - **Vladimir de Turckheim** <> (he/him) * [vkurchatkin](https://github.com/vkurchatkin) - **Vladimir Kurchatkin** <> * [VoltrexKeyva](https://github.com/VoltrexKeyva) - **Mohammed Keyvanzadeh** <> (he/him) * [vsemozhetbyt](https://github.com/vsemozhetbyt) - **Vse Mozhet Byt** <> (he/him) * [watson](https://github.com/watson) - **Thomas Watson** <> * [whitlockjc](https://github.com/whitlockjc) - **Jeremy Whitlock** <> * [yashLadha](https://github.com/yashLadha) - **Yash Ladha** <> (he/him) * [yhwang](https://github.com/yhwang) - **Yihong Wang** <> * [yorkie](https://github.com/yorkie) - **Yorkie Liu** <> * [yosuke-furukawa](https://github.com/yosuke-furukawa) - **Yosuke Furukawa** <> * [zcbenz](https://github.com/zcbenz) - **Cheng Zhao** <> (he/him)

Collaborators follow the Collaborator Guide in
maintaining the Node.js project.

Triagers

Triagers follow the Triage Guide when
responding to new issues.

Release keys

Primary GPG keys for Node.js Releasers (some Releasers sign with subkeys):

You can use the keyring the project maintains at
https://github.com/nodejs/release-keys/raw/refs/heads/main/gpg-only-active-keys/pubring.kbx.
Alternatively, you can import them from a public key server. Have in mind that
the project cannot guarantee the availability of the server nor the keys on
that server.

gpg --keyserver hkps://keys.openpgp.org --recv-keys 5BE8A3F6C8A5C01D106C0AD820B1A390B168D356 # Antoine du Hamel
gpg --keyserver hkps://keys.openpgp.org --recv-keys DD792F5973C6DE52C432CBDAC77ABFA00DDBF2B7 # Juan José Arboleda
gpg --keyserver hkps://keys.openpgp.org --recv-keys CC68F5A3106FF448322E48ED27F5E38D5B0A215F # Marco Ippolito
gpg --keyserver hkps://keys.openpgp.org --recv-keys 890C08DB8579162FEE0DF9DB8BEAB4DFCF555EF4 # Rafael Gonzaga
gpg --keyserver hkps://keys.openpgp.org --recv-keys C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C # Richard Lau
gpg --keyserver hkps://keys.openpgp.org --recv-keys 108F52B48DB57BB0CC439B2997B01419BD92F80A # Ruy Adorno
gpg --keyserver hkps://keys.openpgp.org --recv-keys 655F3B5C1FB3FA8D1A0CA6BDE4A7D232B936D2FD # Stewart X Addison
gpg --keyserver hkps://keys.openpgp.org --recv-keys A363A499291CBBC940DD62E41F10027AF002F8B0 # Ulises Gascón

See Verifying binaries for how to use these keys to
verify a downloaded file.

Other keys used to sign some previous releases * **Antoine du Hamel** <> `C0D6248439F1D5604AAFFB4021D900FFDB233756` * **Beth Griggs** <> `4ED778F539E3634C779C87C6D7062848A1AB005C` * **Bryan English** <> `141F07595B7B3FFE74309A937405533BE57C7D57` * **Chris Dickinson** <> `9554F04D7259F04124DE6B476D5A82AC7E37093B` * **Colin Ihrig** <> `94AE36675C464D64BAFA68DD7434390BDBE9B9C5` * **Danielle Adams** <> `1C050899334244A8AF75E53792EF661D867B9DFA` `74F12602B6F1C4E913FAA37AD3A89613643B6201` * **Evan Lucas** <> `B9AE9905FFD7803F25714661B63B535A4C206CA9` * **Gibson Fahnestock** <> `77984A986EBC2AA786BC0F66B01FBB92821C587A` * **Isaac Z. Schlueter** <> `93C7E9E91B49E432C2F75674B0A78B0A6C481CF6` * **Italo A. Casas** <> `56730D5401028683275BD23C23EFEFE93C4CFFFE` * **James M Snell** <> `71DCFD284A79C3B38668286BC97EC7A07EDE3FC1` * **Jeremiah Senkpiel** <> `FD3A5288F042B6850C66B31F09FE44734EB7990E` * **Juan José Arboleda** <> `61FC681DFB92A079F1685E77973F295594EC4689` * **Julien Gilli** <> `114F43EE0176B71C7BC219DD50A3051F888C628D` * **Michaël Zasso** <> `8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600` * **Myles Borins** <> `C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8` * **Rod Vagg** <> `DD8F2338BAE7501E3DD5AC78C273792F7D83545D` * **Ruben Bridgewater** <> `A48C2BEE680E841632CD4E44F07496B3EB3C1762` * **Shelley Vohr** <> `B9E2F5981AA6E0CD28160D9FF13993A75599653C` * **Timothy J Fontaine** <> `7937DFD2AB06298B2293C3187D33FF9D0246406D` The project maintains a keyring able to verify all past releases of Node.js at .

Security release stewards

When possible, the commitment to take slots in the
security release steward rotation is made by companies in order
to ensure individuals who act as security stewards have the
support and recognition from their employer to be able to
prioritize security releases. Security release stewards manage security
releases on a rotation basis as outlined in the
security release process.

License

Node.js is licensed under the MIT License.

This project also depends on external libraries that may use different open-source
licenses. For a complete list of included licenses, please see the
LICENSE file.

If you are contributing documentation or source changes, please ensure your
additions comply with the project’s license guidelines.