docs(prerequisites): update Node.js prerequisites documentation

This change updates the version of the Node Version Manager suggested by
the prerequisites documentation. The NVM installation command line hint
has been replaced with the snippet provided by NVM's user guide, and the
second line now automatically installs a version of Node.js compatible
with TF-A's repository scripts.

Change-Id: I6ef5e504118238716ceb45a52083450c424c5d20
Signed-off-by: Chris Kay <chris.kay@arm.com>
This commit is contained in:
Chris Kay 2022-10-10 14:34:23 +01:00
parent 07217574af
commit 10c969c5bb

View file

@ -104,14 +104,15 @@ The optional packages can be installed using:
sudo apt install device-tree-compiler sudo apt install device-tree-compiler
Additionally, to install an up-to-date version of Node.js, you can use the `Node Additionally, to install a version of Node.js compatible with TF-A's repository
Version Manager`_ to install a version of your choosing (we recommend 16, but scripts, you can use the `Node Version Manager`_. To install both NVM and an
later LTS versions might offer a more stable experience): appropriate version of Node.js, run the following **from the root directory of
the repository**:
.. code:: shell .. code:: shell
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | "$SHELL" curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
exec "$SHELL" -ic "nvm install 16; exec $SHELL" exec "$SHELL" -ic "nvm install; exec $SHELL"
.. _Node Version Manager: https://github.com/nvm-sh/nvm#install--update-script .. _Node Version Manager: https://github.com/nvm-sh/nvm#install--update-script