mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +01:00
docs: Update Node.js requirement to 16.11.0 (#9764)
* Update Node.js requirement in README file * chore: update the rest of files with nodejs 16.11.0 * Update 03-updating-to-v14.mdx --------- Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
This commit is contained in:
@@ -61,9 +61,9 @@ body:
|
|||||||
label: Versions
|
label: Versions
|
||||||
description: List necessary versions here. This includes your package version, runtime version, operating system etc.
|
description: List necessary versions here. This includes your package version, runtime version, operating system etc.
|
||||||
placeholder: |
|
placeholder: |
|
||||||
- discord.js 14.9.0 (`npm ls discord.js` or another package)
|
- discord.js 14.12.1 (`npm ls discord.js` or another package)
|
||||||
- Node.js 16.9.0 (`node --version`)
|
- Node.js 16.11.0 (`node --version`)
|
||||||
- TypeScript 5.0.4 (`npm ls typescript` if you use it)
|
- TypeScript 5.1.6 (`npm ls typescript` if you use it)
|
||||||
- macOS Ventura 13.3.1
|
- macOS Ventura 13.3.1
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
|||||||
@@ -7,11 +7,11 @@ category: Installations and preparations
|
|||||||
|
|
||||||
## Installing Node.js
|
## Installing Node.js
|
||||||
|
|
||||||
To use discord.js, you'll need to install [Node.js](https://nodejs.org/). discord.js v14 requires Node v16.9.0 or higher.
|
To use discord.js, you'll need to install [Node.js](https://nodejs.org/). discord.js v14 requires Node v16.11.0 or higher.
|
||||||
|
|
||||||
<Alert title="Tip" type="success">
|
<Alert title="Tip" type="success">
|
||||||
To check if you already have Node installed on your machine \(e.g., if you're using a VPS\), run _`node -v`_ in your
|
To check if you already have Node installed on your machine \(e.g., if you're using a VPS\), run _`node -v`_ in your
|
||||||
terminal. If it outputs _`v16.9.0`_ or higher, then you're good to go! Otherwise, continue reading.
|
terminal. If it outputs _`v16.11.0`_ or higher, then you're good to go! Otherwise, continue reading.
|
||||||
</Alert>
|
</Alert>
|
||||||
|
|
||||||
On Windows, it's as simple as installing any other program. Download the latest version from [the Node.js website](https://nodejs.org/), open the downloaded file, and follow the steps from the installer.
|
On Windows, it's as simple as installing any other program. Download the latest version from [the Node.js website](https://nodejs.org/), open the downloaded file, and follow the steps from the installer.
|
||||||
@@ -48,7 +48,7 @@ On macOS, either:
|
|||||||
|
|
||||||
On Linux, you can quickly open the terminal with <kbd>Ctrl + Alt + T</kbd>.
|
On Linux, you can quickly open the terminal with <kbd>Ctrl + Alt + T</kbd>.
|
||||||
|
|
||||||
With the terminal open, run the _`node -v`_ command to make sure you've successfully installed Node.js. If it outputs _`v16.9.0`_ or higher, great!
|
With the terminal open, run the _`node -v`_ command to make sure you've successfully installed Node.js. If it outputs _`v16.11.0`_ or higher, great!
|
||||||
|
|
||||||
### Initiating a project folder
|
### Initiating a project folder
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ category: Additional info
|
|||||||
|
|
||||||
## Before you start
|
## Before you start
|
||||||
|
|
||||||
v14 requires Node 16.9 or higher to use, so make sure you're up to date. To check your Node.js version, use _`node --version`_ in your terminal or command prompt, and if it's not high enough, update it! There are many resources online to help you with this step based on your host system.
|
v14 requires Node 16.11 or higher to use, so make sure you're up to date. To check your Node.js version, use _`node --version`_ in your terminal or command prompt, and if it's not high enough, update it! There are many resources online to help you with this step based on your host system.
|
||||||
|
|
||||||
### Various packages are now included in v14
|
### Various packages are now included in v14
|
||||||
|
|
||||||
|
|||||||
@@ -71,7 +71,7 @@
|
|||||||
"yaml@^2.1.1": "patch:yaml@npm%3A2.2.2#./.yarn/patches/yaml-npm-2.2.2-6e3cddb343.patch"
|
"yaml@^2.1.1": "patch:yaml@npm%3A2.2.2#./.yarn/patches/yaml-npm-2.2.2-6e3cddb343.patch"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.9.0"
|
"node": ">=16.11.0"
|
||||||
},
|
},
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"apps/*",
|
"apps/*",
|
||||||
|
|||||||
@@ -61,6 +61,6 @@
|
|||||||
"vitest": "^0.34.1"
|
"vitest": "^0.34.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.9.0"
|
"node": ">=16.11.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
"typescript": "^5.1.6"
|
"typescript": "^5.1.6"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.9.0"
|
"node": ">=16.11.0"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
**Node.js 16.9.0 or newer is required.**
|
**Node.js 16.11.0 or newer is required.**
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm install @discordjs/brokers
|
npm install @discordjs/brokers
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
"vitest": "^0.34.1"
|
"vitest": "^0.34.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.9.0"
|
"node": ">=16.11.0"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
**Node.js 16.9.0 or newer is required.**
|
**Node.js 16.11.0 or newer is required.**
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm install @discordjs/builders
|
npm install @discordjs/builders
|
||||||
|
|||||||
@@ -82,7 +82,7 @@
|
|||||||
"vitest": "^0.34.1"
|
"vitest": "^0.34.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.9.0"
|
"node": ">=16.11.0"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
**Node.js 16.9.0 or newer is required.**
|
**Node.js 16.11.0 or newer is required.**
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm install @discordjs/collection
|
npm install @discordjs/collection
|
||||||
|
|||||||
@@ -68,7 +68,7 @@
|
|||||||
"vitest": "^0.34.1"
|
"vitest": "^0.34.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.9.0"
|
"node": ">=16.11.0"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
**Node.js 16.9.0 or newer is required.**
|
**Node.js 16.11.0 or newer is required.**
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm install @discordjs/core
|
npm install @discordjs/core
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
"vitest": "^0.34.1"
|
"vitest": "^0.34.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.9.0"
|
"node": ">=16.11.0"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ discord.js is a powerful [Node.js](https://nodejs.org) module that allows you to
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
**Node.js 16.9.0 or newer is required.**
|
**Node.js 16.11.0 or newer is required.**
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm install discord.js
|
npm install discord.js
|
||||||
|
|||||||
@@ -80,6 +80,6 @@
|
|||||||
"typescript": "^5.1.6"
|
"typescript": "^5.1.6"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.9.0"
|
"node": ">=16.11.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,7 +60,7 @@
|
|||||||
"typescript": "^5.1.6"
|
"typescript": "^5.1.6"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.9.0"
|
"node": ">=16.11.0"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
**Node.js 16.9.0 or newer is required.**
|
**Node.js 16.11.0 or newer is required.**
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm install @discordjs/formatters
|
npm install @discordjs/formatters
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
"vitest": "^0.34.1"
|
"vitest": "^0.34.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.9.0"
|
"node": ">=16.11.0"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
|||||||
@@ -60,7 +60,7 @@
|
|||||||
"typescript": "^5.1.6"
|
"typescript": "^5.1.6"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.9.0"
|
"node": ">=16.11.0"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
**Node.js 16.9.0 or newer is required.**
|
**Node.js 16.11.0 or newer is required.**
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm install @discordjs/proxy
|
npm install @discordjs/proxy
|
||||||
|
|||||||
@@ -79,7 +79,7 @@
|
|||||||
"vitest": "^0.34.1"
|
"vitest": "^0.34.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.9.0"
|
"node": ">=16.11.0"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
**Node.js 16.9.0 or newer is required.**
|
**Node.js 16.11.0 or newer is required.**
|
||||||
|
|
||||||
Note: native fetch (not recommended) is unavailable in this node version, either use a newer node version or use the more performant `undiciRequest` strategy (default)
|
Note: native fetch (not recommended) is unavailable in this node version, either use a newer node version or use the more performant `undiciRequest` strategy (default)
|
||||||
|
|
||||||
|
|||||||
@@ -93,7 +93,7 @@
|
|||||||
"vitest": "^0.34.1"
|
"vitest": "^0.34.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.9.0"
|
"node": ">=16.11.0"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
|||||||
@@ -69,6 +69,6 @@
|
|||||||
"vitest": "^0.34.1"
|
"vitest": "^0.34.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.9.0"
|
"node": ">=16.11.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
"vitest": "^0.29.8"
|
"vitest": "^0.29.8"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.9.0"
|
"node": ">=16.11.0"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
|||||||
@@ -86,7 +86,7 @@
|
|||||||
"vitest": "^0.34.1"
|
"vitest": "^0.34.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.9.0"
|
"node": ">=16.11.0"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
**Node.js 16.9.0 or newer is required.**
|
**Node.js 16.11.0 or newer is required.**
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm install @discordjs/util
|
npm install @discordjs/util
|
||||||
|
|||||||
@@ -69,7 +69,7 @@
|
|||||||
"vitest": "^0.34.1"
|
"vitest": "^0.34.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.9.0"
|
"node": ">=16.11.0"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
**Node.js 16.9.0 or newer is required.**
|
**Node.js 16.11.0 or newer is required.**
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm install @discordjs/voice
|
npm install @discordjs/voice
|
||||||
|
|||||||
@@ -83,7 +83,7 @@
|
|||||||
"typescript": "^5.1.6"
|
"typescript": "^5.1.6"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.9.0"
|
"node": ">=16.11.0"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
**Node.js 16.9.0 or newer is required.**
|
**Node.js 16.11.0 or newer is required.**
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm install @discordjs/ws
|
npm install @discordjs/ws
|
||||||
|
|||||||
@@ -91,7 +91,7 @@
|
|||||||
"zlib-sync": "^0.1.8"
|
"zlib-sync": "^0.1.8"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.9.0"
|
"node": ">=16.11.0"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
|||||||
Reference in New Issue
Block a user