You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* set engines.node to >=12
* set engines.node to >=12
* Update node-versions.md
* update Node.js version in Actions workflows
* Update .node-version
* Update references to Node.js version from 12 to 14
* Update Dockerfile to use Node.js 14
* set engines.node to safe "12 - 14" range
Copy file name to clipboardExpand all lines: contributing/development.md
+2-24
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ This site is powered by Node.js! :sparkles: :turtle: :rocket: :sparkles:
8
8
9
9
It runs on macOS, Windows, and Linux environments.
10
10
11
-
You'll need **Node.js v12** to run the site. If you're using [`nodenv`](https://github.com/nodenv/nodenv), read the [`nodenv` docs](#nodenv)below for instructions on switching to Node.js 12. If you're not using `nodenv`, the best way to install Node.js is to [download the LTS installer from nodejs.org](https://nodejs.org).
11
+
You'll need **Node.js v14** to run the site. If you're using [`nodenv`](https://github.com/nodenv/nodenv), read the [`nodenv` docs](#nodenv) for instructions on switching Node.js versions. If you're not using `nodenv`, the best way to install Node.js is to [download the LTS installer from nodejs.org](https://nodejs.org).
12
12
13
13
Once you've installed Node.js (which includes the popular `npm` package manager), open Terminal and run the following:
14
14
@@ -52,26 +52,4 @@ For more info about working with this site, check out these READMEs:
[nodenv](https://github.com/nodenv/nodenv) is a tool for managing multiple Node.js versions on your local machine. It is **not required** to run this app, but you may already have it installed if you've worked on other projects that use Node.js.
60
-
61
-
To install Node.js 12 and make it your default version, run this command:
62
-
63
-
```sh
64
-
nodenv install 12.8.0 && nodenv global 12.8.0
65
-
```
66
-
67
-
You may sometimes see a warning when running npm scripts with nodenv:
68
-
69
-
```sh
70
-
npm WARN lifecycle The node binary used for scripts is [...] but npm is using [...]
71
-
```
72
-
73
-
This is due to nodenv's overriding behavior. To silence this harmless warning, the [nodenv docs](https://github.com/nodenv/nodenv/wiki/FAQ#npm-warning-about-mismatched-binaries) recommend running the following command from any directory:
The site currently runs on Node.js v12, the [Active LTS version](https://nodejs.org/en/about/releases/)that will be supported until 2020-10-20.
3
+
The site currently runs on Node.js v14, the [Active LTS version](https://nodejs.org/en/about/releases/)from 2020-10-27 to 2021-10-26.
4
4
5
5
When updating to a new Node.js version, consider the following files:
6
6
7
-
- The `engines.node` entry in `package.json`
8
-
- The `.node-version` file used by [nodenv](https://github.com/nodenv/nodenv), a tool for managing multiple Node.js versions on your machine.
9
-
- The `.github/*.workflow` Actions files
10
-
- The `Dockerfile` that can be used for deployments
11
-
- This README!
7
+
-[ ] The `engines.node` entry in `package.json`
8
+
-[ ] The `.node-version` file used by [nodenv](https://github.com/nodenv/nodenv), a tool for managing multiple Node.js versions on your machine.
9
+
-[ ] The `.github/*.workflow` Actions files
10
+
-[ ] The `Dockerfile` that can be used for deployments
11
+
-[ ] The `contributing/development.md` guide
12
+
-[ ] The `contributing/node-versions.md` file
12
13
13
-
###`nodenv`
14
+
## `nodenv`
14
15
15
-
[nodenv](https://github.com/nodenv/nodenv) is a tool for managing multiple
16
-
Node.js versions on your local machine. It is **not required** to run the
17
-
docs-internal app, but you may already have it installed if you've worked on other
18
-
internal GitHub projects that use Node.js.
16
+
[nodenv](https://github.com/nodenv/nodenv) is a tool for managing multiple Node.js versions on your local machine. It is **not required** to run this app, but you may already have it installed if you've worked on other projects that use Node.js.
19
17
20
-
To install Node.js 12 and make it your default version, run this command:
18
+
If you're using macOS, run this command to get the latest:
19
+
20
+
```
21
+
brew upgrade nodenv node-build
22
+
```
23
+
24
+
If you're using another operating system, or did not use Homebrew to install nodenv, see these [upgrade instructions](https://github.com/nodenv/nodenv#installation).
25
+
26
+
To install Node.js 14 and make it your default version, run this command:
21
27
22
28
```sh
23
-
nodenv install 12.8.0 && nodenv global 12.8.0
29
+
nodenv install 14.13.0 && nodenv global 14.13.0
24
30
```
25
31
26
32
You may sometimes see a warning when running npm scripts with nodenv:
@@ -29,10 +35,8 @@ You may sometimes see a warning when running npm scripts with nodenv:
29
35
npm WARN lifecycle The node binary used for scripts is [...] but npm is using [...]
30
36
```
31
37
32
-
This is due to nodenv's overriding behavior. To silence this harmless warning,
33
-
the [nodenv docs](https://github.com/nodenv/nodenv/wiki/FAQ#npm-warning-about-mismatched-binaries)
34
-
recommend running the following command from any directory:
38
+
This is due to nodenv's overriding behavior. To silence this harmless warning, the [nodenv docs](https://github.com/nodenv/nodenv/wiki/FAQ#npm-warning-about-mismatched-binaries) recommend running the following command from any directory:
0 commit comments