Node.js JavaScript runtime 🐢🚀
Go to file
Tobias Nießen 0ae8bf8dbc msi: do not create AppData\Roaming\npm
This effectively reverts e431cae7e7 due to
security concerns. The directory is being created with elevated
privileges but its path may depend on an unprivileged user's environment
variables. Creating a directory in certain sensitive locations can cause
Windows to become inoperable.

Creating AppData\Roaming\npm was an intentional addition in order to
resolve https://github.com/nodejs/node-v0.x-archive/issues/8141, which
appears to have been a common issue for users of npm. However, this was
implemented before 4cfe5eb9af, which
changed the MSI installation scope to perMachine. There were concerns
about creating the npm directory in that PR, albeit not related to
security (see https://github.com/nodejs/node-v0.x-archive/pull/25640).

Refs: https://github.com/nodejs/node-v0.x-archive/issues/8141
Refs: https://github.com/nodejs/node-v0.x-archive/pull/8838
Refs: https://github.com/nodejs/node-v0.x-archive/pull/25640
PR-URL: https://github.com/nodejs-private/node-private/pull/408
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
CVE-ID: CVE-2023-30585
2023-06-20 17:30:15 -03:00
.devcontainer build: add devcontainer configuration 2023-04-22 09:02:28 -07:00
.github tools: automate update openssl v16 2023-06-19 12:53:09 +00:00
android-patches build: rewritten the Android build system 2022-09-12 08:10:29 +00:00
benchmark node-api: provide napi_define_properties fast path 2023-06-15 18:07:30 -07:00
deps build: sync libuv header change 2023-06-14 05:27:57 +00:00
doc 2023-06-20, Version 18.16.1 'Hydrogen' (LTS) 2023-06-20 17:26:23 -03:00
lib lib: fix output message when repl is used with pm 2023-06-17 17:28:38 +00:00
src permission: handle fs.watchFile 2023-06-20 17:30:08 -03:00
test permission: handle fs.watchFile 2023-06-20 17:30:08 -03:00
tools msi: do not create AppData\Roaming\npm 2023-06-20 17:30:15 -03:00
typings url: use ada::url_aggregator for parsing urls 2023-04-05 09:05:27 -07:00
.clang-format
.cpplint
.editorconfig
.eslintignore src,lib: print source map error source on demand 2022-07-28 08:09:30 +08:00
.eslintrc.js tools: disable jsdoc/no-defaults rule 2023-06-06 02:04:57 +00:00
.gitattributes build: add .gitattributes for npm and other shims 2022-07-19 21:27:49 +01:00
.gitignore build: add devcontainer configuration 2023-04-22 09:02:28 -07:00
.gitpod.yml build: add node-core-utils to setup 2023-04-09 18:22:50 +00:00
.mailmap meta: add mailmap entry for KhafraDev 2023-04-11 18:05:05 +00:00
.nycrc
.yamllint.yaml build: extend yamllint configuration 2022-02-14 19:09:26 +01:00
android_configure.py build: rewritten the Android build system 2022-09-12 08:10:29 +00:00
android-configure build: add python 3.11 support for android 2022-12-11 02:58:02 +00:00
BSDmakefile build: replace which with command -v 2020-11-19 19:33:28 +01:00
BUILDING.md doc: update documentation for FIPS support 2023-05-30 11:40:25 +00:00
CHANGELOG.md 2023-06-20, Version 18.16.1 'Hydrogen' (LTS) 2023-06-20 17:26:23 -03:00
CODE_OF_CONDUCT.md tools: avoid unnecessary escaping in markdown formatter 2021-10-31 09:36:05 -07:00
codecov.yml tools: disable Codecov commit statuses 2023-04-01 07:08:22 +00:00
common.gypi deps: V8: cherry-pick 5f025d1ca2ca 2023-05-10 14:36:42 +02:00
configure build: support Python 3.11 2022-10-28 18:35:49 +00:00
configure.py build: set v8_enable_webassembly=false when lite mode is enabled 2023-06-01 18:11:26 +00:00
CONTRIBUTING.md doc: make contributing info more discoverable 2022-01-18 14:24:30 -05:00
glossary.md doc: add undici to glossary 2022-06-08 17:22:09 -07:00
GOVERNANCE.md meta: update link to collaborators discussion page 2023-03-25 11:56:49 +00:00
LICENSE doc: run license-builder 2023-06-07 00:29:18 +00:00
Makefile node-api: provide napi_define_properties fast path 2023-06-15 18:07:30 -07:00
node.gyp build: speed up compilation of mksnapshot output 2023-06-01 15:41:52 +00:00
node.gypi build,test: add proper support for IBM i 2023-02-22 04:18:56 +00:00
onboarding.md meta: remove unnecessary onboarding step 2023-02-25 15:28:15 +00:00
pyproject.toml build: replace Python linter flake8 with ruff 2023-04-14 16:49:01 +00:00
README.md doc: add preveen-stack to triagers 2023-06-15 11:25:27 +00:00
SECURITY.md doc: fix typos in SECURITY.md 2023-04-23 06:00:17 +00:00
tsconfig.json typings: fix syntax error in tsconfig 2023-04-16 19:42:42 +00:00
vcbuild.bat tools: remove targets for individual test suites in Makefile 2023-03-31 13:48:59 +00:00

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: Under active development. Code for the Current release is in the branch for its major version number (for example, v19.x). Node.js releases a new major version every 6 months, allowing for breaking changes. This happens in April and October every year. Releases appearing each October have a support life of 8 months. Releases appearing each April convert to LTS (see below) each October.
  • LTS: Releases that receive Long Term Support, with a focus on stability and security. Every even-numbered major version will become an LTS release. LTS releases receive 12 months of Active LTS support and a further 18 months of Maintenance. LTS release lines have alphabetically-ordered code names, beginning with v4 Argon. There are no breaking changes or feature additions, except in some special circumstances.
  • Nightly: Code from the Current branch built every 24-hours when there are changes. Use with caution.

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 name and filename contains a date (in UTC) and the commit SHA at the HEAD of the release.

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 file with SHA checksums for the files.

To download SHASUMS256.txt using curl:

curl -O https://nodejs.org/dist/vx.y.z/SHASUMS256.txt

To check that a downloaded file matches the checksum, run it through sha256sum with a command such as:

grep node-vx.y.z.tar.gz SHASUMS256.txt | sha256sum -c -

For Current and LTS, the GPG detached signature of SHASUMS256.txt is in SHASUMS256.txt.sig. You can use it with gpg to verify the integrity of SHASUMS256.txt. You will first need to import the GPG keys of individuals authorized to create releases. To import the keys:

gpg --keyserver hkps://keys.openpgp.org --recv-keys 4ED778F539E3634C779C87C6D7062848A1AB005C

See Release keys for a script to import active release keys.

Next, download the SHASUMS256.txt.sig for the release:

curl -O https://nodejs.org/dist/vx.y.z/SHASUMS256.txt.sig

Then use gpg --verify SHASUMS256.txt.sig SHASUMS256.txt to verify the file's signature.

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

Emeriti

Collaborator emeriti

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):

To import the full set of trusted release keys (including subkeys possibly used to sign releases):

gpg --keyserver hkps://keys.openpgp.org --recv-keys 4ED778F539E3634C779C87C6D7062848A1AB005C
gpg --keyserver hkps://keys.openpgp.org --recv-keys 141F07595B7B3FFE74309A937405533BE57C7D57
gpg --keyserver hkps://keys.openpgp.org --recv-keys 74F12602B6F1C4E913FAA37AD3A89613643B6201
gpg --keyserver hkps://keys.openpgp.org --recv-keys DD792F5973C6DE52C432CBDAC77ABFA00DDBF2B7
gpg --keyserver hkps://keys.openpgp.org --recv-keys 8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600
gpg --keyserver hkps://keys.openpgp.org --recv-keys C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8
gpg --keyserver hkps://keys.openpgp.org --recv-keys 890C08DB8579162FEE0DF9DB8BEAB4DFCF555EF4
gpg --keyserver hkps://keys.openpgp.org --recv-keys C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C
gpg --keyserver hkps://keys.openpgp.org --recv-keys 108F52B48DB57BB0CC439B2997B01419BD92F80A

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

Other keys used to sign some previous releases

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 available under the MIT license. Node.js also includes external libraries that are available under a variety of licenses. See LICENSE for the full license text.