Skip to content

Commit f073d76

Browse files
authored
Framework: Pin nvmrc to specific current LTS (#22236)
* Framework: Pin nvmrc to specific current LTS * Docs: Update Getting Started to note nvmrc pinning
1 parent b9926f3 commit f073d76

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
lts/*
1+
12

docs/contributors/getting-started.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# Getting Started
22

3-
Gutenberg is a Node.js-based project, built primarily in JavaScript.
43

5-
The first step is to install the [latest active LTS release](https://github.com/nodejs/Release#release-schedule) of Node, along with the latest version of [NPM](https://www.npmjs.com/). The easiest way (on macOS, Linux, or Windows 10 with the Linux Subsystem) is by installing and running [nvm]. Once `nvm` is installed, you can install the correct version of Node by running `nvm install --latest-npm` in the Gutenberg directory.
4+
Gutenberg is built using the [latest active LTS release](https://github.com/nodejs/Release#release-schedule) of [Node.js](https://nodejs.org/en/), along with the latest version of [NPM](http://npmjs.com/).
5+
6+
The easiest way to install and manage node and NPM (on macOS, Linux, or Windows 10 with the Linux Subsystem) is by using [nvm](https://github.com/creationix/nvm). Once nvm is installed, you can install the correct version of Node by running nvm install --latest-npm in the Gutenberg directory.
7+
8+
>**Note:** If you find yourself needing to build older versions of Gutenberg, nvm makes that process easier too. Because Gutenberg's `.nvmrc` file is regularly updated to the current available LTS release, running `nvm install` on an older branch will install whichever LTS version was active at that time.
69
710
Once you have Node installed, run these scripts from within your local Gutenberg repository:
811

@@ -64,9 +67,6 @@ After building the cloned gutenberg directory contains the complete plugin, you
6467

6568
Another way to upload after building is to run `npm run package-plugin` to create a plugin zip file — this requires `bash` and `php` to run. The script creates `gutenberg.zip` that you can use to install Gutenberg through the WordPress admin.
6669

67-
[npm]: https://www.npmjs.com/
68-
[nvm]: https://github.com/creationix/nvm
69-
7070
## Storybook
7171

7272
> Storybook is an open source tool for developing UI components in isolation for React, React Native and more. It makes building stunning UIs organized and efficient.

0 commit comments

Comments
 (0)